summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-06-10 03:35:31 +0200
committerDavid Roundy <droundy@darcs.net>2007-06-10 03:35:31 +0200
commit2efe3291b8b3db7b2c3c729297760ebd7677a8f4 (patch)
tree35991117332e819bde38c626c3aee5eb413a93b7
parentb8a5c2af010b4ed3a970102a4e68ae2f93043f6d (diff)
downloadmetatile-2efe3291b8b3db7b2c3c729297760ebd7677a8f4.tar
metatile-2efe3291b8b3db7b2c3c729297760ebd7677a8f4.zip
send message when "windows" is called.
darcs-hash:20070610013531-72aca-9f6807aed050b85a00bd11a69d05843c1cbedbaa
-rw-r--r--Operations.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Operations.hs b/Operations.hs
index eb3a871..7405ce7 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -123,9 +123,13 @@ kill = withDisplay $ \d -> withFocused $ \w -> do
-- ---------------------------------------------------------------------
-- Managing windows
+data ModifyWindows = ModifyWindows deriving Typeable
+instance Message ModifyWindows
+
-- | windows. Modify the current window list with a pure function, and refresh
windows :: (WindowSet -> WindowSet) -> X ()
windows f = do
+ sendMessage ModifyWindows
XState { windowset = old, layouts = fls, xineScreens = xinesc, statusGaps = gaps } <- get
let ws = f old
modify (\s -> s { windowset = ws })