@@ -98,7 +98,8 @@ enum WindowAction: Int, Codable {
9898 largerHeight = 82 ,
9999 smallerHeight = 83 ,
100100 centerTwoThirds = 84 ,
101- centerThreeFourths = 85
101+ centerThreeFourths = 85 ,
102+ tileActiveApp = 86
102103
103104 // Order matters here - it's used in the menu
104105 static let active = [ leftHalf, rightHalf, centerHalf, topHalf, bottomHalf,
@@ -121,7 +122,7 @@ enum WindowAction: Int, Codable {
121122 halveHeightUp, halveHeightDown, halveWidthLeft, halveWidthRight,
122123 tileAll, cascadeAll,
123124 leftTodo, rightTodo,
124- cascadeActiveApp
125+ cascadeActiveApp, tileActiveApp
125126 ]
126127
127128 func post( ) {
@@ -233,6 +234,7 @@ enum WindowAction: Int, Codable {
233234 case . leftTodo: return " leftTodo "
234235 case . rightTodo: return " rightTodo "
235236 case . cascadeActiveApp: return " cascadeActiveApp "
237+ case . tileActiveApp: return " tileActiveApp "
236238 case . centerProminently: return " centerProminently "
237239 case . largerWidth: return " largerWidth "
238240 case . smallerWidth: return " smallerWidth "
@@ -378,7 +380,7 @@ enum WindowAction: Int, Codable {
378380 return nil
379381 case . doubleHeightUp, . doubleHeightDown, . doubleWidthLeft, . doubleWidthRight, . halveHeightUp, . halveHeightDown, . halveWidthLeft, . halveWidthRight:
380382 return nil
381- case . specified, . reverseAll, . tileAll, . cascadeAll, . leftTodo, . rightTodo, . cascadeActiveApp:
383+ case . specified, . reverseAll, . tileAll, . cascadeAll, . leftTodo, . rightTodo, . cascadeActiveApp, . tileActiveApp :
382384 return nil
383385 case . centerProminently, . largerWidth, . smallerWidth, . largerHeight, . smallerHeight:
384386 return nil
@@ -410,7 +412,7 @@ enum WindowAction: Int, Codable {
410412
411413 var isDragSnappable : Bool {
412414 switch self {
413- case . restore, . previousDisplay, . nextDisplay, . moveUp, . moveDown, . moveLeft, . moveRight, . specified, . reverseAll, . tileAll, . cascadeAll, . larger, . smaller, . largerWidth, . smallerWidth, . cascadeActiveApp,
415+ case . restore, . previousDisplay, . nextDisplay, . moveUp, . moveDown, . moveLeft, . moveRight, . specified, . reverseAll, . tileAll, . cascadeAll, . larger, . smaller, . largerWidth, . smallerWidth, . cascadeActiveApp, . tileActiveApp ,
414416 // Ninths
415417 . topLeftNinth, . topCenterNinth, . topRightNinth, . middleLeftNinth, . middleCenterNinth, . middleRightNinth, . bottomLeftNinth, . bottomCenterNinth, . bottomRightNinth,
416418 // Corner thirds
@@ -557,6 +559,7 @@ enum WindowAction: Int, Codable {
557559 case . leftTodo: return NSImage ( )
558560 case . rightTodo: return NSImage ( )
559561 case . cascadeActiveApp: return NSImage ( )
562+ case . tileActiveApp: return NSImage ( )
560563 case . centerProminently: return NSImage ( )
561564 case . largerWidth: return NSImage ( imageLiteralResourceName: " largerWidthTemplate " )
562565 case . smallerWidth: return NSImage ( imageLiteralResourceName: " smallerWidthTemplate " )
@@ -604,7 +607,7 @@ enum WindowAction: Int, Codable {
604607 return Defaults . applyGapsToMaximize. userDisabled ? . none : . both;
605608 case . maximizeHeight:
606609 return Defaults . applyGapsToMaximizeHeight. userDisabled ? . none : . vertical;
607- case . almostMaximize, . previousDisplay, . nextDisplay, . larger, . smaller, . largerWidth, . smallerWidth, . largerHeight, . smallerHeight, . center, . centerProminently, . restore, . specified, . reverseAll, . tileAll, . cascadeAll, . cascadeActiveApp:
610+ case . almostMaximize, . previousDisplay, . nextDisplay, . larger, . smaller, . largerWidth, . smallerWidth, . largerHeight, . smallerHeight, . center, . centerProminently, . restore, . specified, . reverseAll, . tileAll, . cascadeAll, . cascadeActiveApp, . tileActiveApp :
608611 return . none
609612 }
610613 }
0 commit comments