From 2a0181aa84edfebb5e79f73707e6b11fd509dbb3 Mon Sep 17 00:00:00 2001 From: Jan Vornberger Date: Sun, 4 Oct 2009 10:52:32 +0200 Subject: Fixed guard in WorkspaceByPos - condition got switched during transformation Ignore-this: 6685ef8ddff55c7758c2b77cfc65cbba darcs-hash:20091004085232-594c5-b6bd64420dfac2c551501bd7e0a2aaa7073f166c.gz --- XMonad/Hooks/WorkspaceByPos.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMonad/Hooks/WorkspaceByPos.hs b/XMonad/Hooks/WorkspaceByPos.hs index fbd3d77..b7f1323 100644 --- a/XMonad/Hooks/WorkspaceByPos.hs +++ b/XMonad/Hooks/WorkspaceByPos.hs @@ -45,7 +45,7 @@ needsMoving w = withDisplay $ \d -> do -- only relocate windows with non-zero position wa <- io $ getWindowAttributes d w 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 sc <- lift $ fromMaybe (W.current ws) <$> pointScreen (fi $ wa_x wa) (fi $ wa_y wa) -- cgit v1.2.3