mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 20:51:52 -07:00
Fixed guard in WorkspaceByPos - condition got switched during transformation
This commit is contained in:
@@ -45,7 +45,7 @@ needsMoving w = withDisplay $ \d -> do
|
|||||||
-- only relocate windows with non-zero position
|
-- only relocate windows with non-zero position
|
||||||
wa <- io $ getWindowAttributes d w
|
wa <- io $ getWindowAttributes d w
|
||||||
fmap (const Nothing `either` Just) . runErrorT $ do
|
fmap (const Nothing `either` Just) . runErrorT $ do
|
||||||
guard $ wa_x wa == 0 && wa_y wa == 0
|
guard $ wa_x wa /= 0 || wa_y wa /= 0
|
||||||
ws <- gets windowset
|
ws <- gets windowset
|
||||||
sc <- lift $ fromMaybe (W.current ws)
|
sc <- lift $ fromMaybe (W.current ws)
|
||||||
<$> pointScreen (fi $ wa_x wa) (fi $ wa_y wa)
|
<$> pointScreen (fi $ wa_x wa) (fi $ wa_y wa)
|
||||||
|
Reference in New Issue
Block a user