@@ -92,13 +92,16 @@ enum WindowAction: Int, Codable {
92
92
halveHeightUp = 76 ,
93
93
halveHeightDown = 77 ,
94
94
halveWidthLeft = 78 ,
95
- halveWidthRight = 79
95
+ halveWidthRight = 79 ,
96
+ largerWidth = 80 ,
97
+ smallerWidth = 81
96
98
97
99
// Order matters here - it's used in the menu
98
100
static let active = [ leftHalf, rightHalf, centerHalf, topHalf, bottomHalf,
99
101
topLeft, topRight, bottomLeft, bottomRight,
100
102
firstThird, centerThird, lastThird, firstTwoThirds, lastTwoThirds,
101
- maximize, almostMaximize, maximizeHeight, smaller, larger, center, centerProminently, restore,
103
+ maximize, almostMaximize, maximizeHeight, larger, smaller, largerWidth, smallerWidth,
104
+ center, centerProminently, restore,
102
105
nextDisplay, previousDisplay,
103
106
moveLeft, moveRight, moveUp, moveDown,
104
107
firstFourth, secondFourth, thirdFourth, lastFourth, firstThreeFourths, lastThreeFourths,
@@ -225,6 +228,8 @@ enum WindowAction: Int, Codable {
225
228
case . rightTodo: return " rightTodo "
226
229
case . cascadeActiveApp: return " cascadeActiveApp "
227
230
case . centerProminently: return " centerProminently "
231
+ case . largerWidth: return " largerWidth "
232
+ case . smallerWidth: return " smallerWidth "
228
233
}
229
234
}
230
235
@@ -361,7 +366,7 @@ enum WindowAction: Int, Codable {
361
366
return nil
362
367
case . specified, . reverseAll, . tileAll, . cascadeAll, . leftTodo, . rightTodo, . cascadeActiveApp:
363
368
return nil
364
- case . centerProminently:
369
+ case . centerProminently, . largerWidth , . smallerWidth :
365
370
return nil
366
371
}
367
372
@@ -398,7 +403,7 @@ enum WindowAction: Int, Codable {
398
403
399
404
var isDragSnappable : Bool {
400
405
switch self {
401
- case . restore, . previousDisplay, . nextDisplay, . moveUp, . moveDown, . moveLeft, . moveRight, . specified, . reverseAll, . tileAll, . cascadeAll, . smaller, . larger , . cascadeActiveApp,
406
+ case . restore, . previousDisplay, . nextDisplay, . moveUp, . moveDown, . moveLeft, . moveRight, . specified, . reverseAll, . tileAll, . cascadeAll, . larger , . smaller, . largerWidth , . smallerWidth , . cascadeActiveApp,
402
407
// Ninths
403
408
. topLeftNinth, . topCenterNinth, . topRightNinth, . middleLeftNinth, . middleCenterNinth, . middleRightNinth, . bottomLeftNinth, . bottomCenterNinth, . bottomRightNinth,
404
409
// Corner thirds
@@ -537,6 +542,8 @@ enum WindowAction: Int, Codable {
537
542
case . rightTodo: return NSImage ( )
538
543
case . cascadeActiveApp: return NSImage ( )
539
544
case . centerProminently: return NSImage ( )
545
+ case . largerWidth: return NSImage ( )
546
+ case . smallerWidth: return NSImage ( )
540
547
}
541
548
}
542
549
@@ -579,7 +586,7 @@ enum WindowAction: Int, Codable {
579
586
return Defaults . applyGapsToMaximize. userDisabled ? . none : . both;
580
587
case . maximizeHeight:
581
588
return Defaults . applyGapsToMaximizeHeight. userDisabled ? . none : . vertical;
582
- case . almostMaximize, . previousDisplay, . nextDisplay, . larger, . smaller, . center, . centerProminently, . restore, . specified, . reverseAll, . tileAll, . cascadeAll, . cascadeActiveApp:
589
+ case . almostMaximize, . previousDisplay, . nextDisplay, . larger, . smaller, . largerWidth , . smallerWidth , . center, . centerProminently, . restore, . specified, . reverseAll, . tileAll, . cascadeAll, . cascadeActiveApp:
583
590
return . none
584
591
}
585
592
}
0 commit comments