fixes Commands.hs

This commit is contained in:
Andrea Rossato
2007-07-16 16:40:17 +00:00
parent 45685bfbcc
commit d2427ab85b

View File

@@ -66,7 +66,7 @@ workspaceCommands = [((m ++ show i), f (fromIntegral i))
]
screenCommands :: [(String, X ())]
screenCommands = [((m ++ show sc), screenWorkspace (fromIntegral sc) >>= f)
screenCommands = [((m ++ show sc), screenWorkspace (fromIntegral sc) >>= flip whenJust f)
| sc <- [0, 1]::[Int] -- TODO: adapt to screen changes
, (f, m) <- [(view, "screen"), (shift, "screen-to-")]
]