@@ -72,18 +72,16 @@ niceFloating = do
7272 isM <- liftX logMaster
7373 layout <- liftX logLayout <&> fmap trimLayoutModifiers
7474 c <- liftX logWinCount <&> (\ c -> c - 1 ) -- exclude the NSP window
75- doRectFloat $ case (isV, isM, layout) of
76- (False , False , Just l)
75+ screenType <- liftX logScreenType
76+ doRectFloat $ case (isV, isM, layout, screenType) of
77+ (False , False , Just l, _)
7778 | c == 3 && " ThreeCol" `isInfixOf` l -> r (33 / 100 ) (6 / 50 ) (32 / 100 ) (25 / 50 )
78- (False , False , Just l)
79+ (False , False , Just l, _ )
7980 | c == 2 && " ThreeCol" `isInfixOf` l ->
8081 r (1 / 100 ) (6 / 50 ) (30 / 100 ) (25 / 50 )
81- (False , _, _) -> r (66 / 100 ) (6 / 50 ) (33 / 100 ) (25 / 50 )
82- -- (_, Just "StackTile") -> r (1 / 50) (26 / 50) (45 / 50) (20 / 50)
83- -- (True, Just "Mirror Tall") -> r (1 / 50) (26 / 50) (45 / 50) (20 / 50)
84- -- (False, Just "Mirror Tall") -> r (1 / 50) (5 / 50) (45 / 50) (20 / 50)
85- (True , True , _) -> r (1 / 50 ) (26 / 50 ) (46 / 50 ) (20 / 50 )
86- (True , False , _) -> r (1 / 50 ) (3 / 50 ) (46 / 50 ) (20 / 50 )
82+ (False , _, _, _) -> r (66 / 100 ) (6 / 50 ) (33 / 100 ) (25 / 50 )
83+ (True , True , _, _) -> r (1 / 50 ) (26 / 50 ) (46 / 50 ) (20 / 50 )
84+ (True , False , _, _) -> r (1 / 50 ) (3 / 50 ) (46 / 50 ) (20 / 50 )
8785
8886newtype CurrentScratchpadName = CurrentScratchpadName String
8987instance ExtensionClass CurrentScratchpadName where
0 commit comments