aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorJan Vornberger <jan.vornberger@informatik.uni-oldenburg.de>2009-10-04 10:52:32 +0200
committerJan Vornberger <jan.vornberger@informatik.uni-oldenburg.de>2009-10-04 10:52:32 +0200
commit2a0181aa84edfebb5e79f73707e6b11fd509dbb3 (patch)
tree7cf43a3a5e5dfbc5cd61285461cc63763ed2fdd2 /XMonad
parent0d01eed23259e5a6b300e79b363cdef4d1e3f8d3 (diff)
downloadXMonadContrib-2a0181aa84edfebb5e79f73707e6b11fd509dbb3.tar.gz
XMonadContrib-2a0181aa84edfebb5e79f73707e6b11fd509dbb3.tar.xz
XMonadContrib-2a0181aa84edfebb5e79f73707e6b11fd509dbb3.zip
Fixed guard in WorkspaceByPos - condition got switched during transformation
Ignore-this: 6685ef8ddff55c7758c2b77cfc65cbba darcs-hash:20091004085232-594c5-b6bd64420dfac2c551501bd7e0a2aaa7073f166c.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Hooks/WorkspaceByPos.hs2
1 files changed, 1 insertions, 1 deletions
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)