aboutsummaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-04-04 03:05:24 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-04-04 03:05:24 +0200
commitc632dce34c75bc7c245d300b3adb616b99950ad0 (patch)
treef1deccc7e6ac38be9728f43240ab67c41e122cb1 /Main.hs
parent7997ebb0b4a3c4aa2bae2e92ab1e0685d075709d (diff)
downloadxmonad-c632dce34c75bc7c245d300b3adb616b99950ad0.tar.gz
xmonad-c632dce34c75bc7c245d300b3adb616b99950ad0.tar.xz
xmonad-c632dce34c75bc7c245d300b3adb616b99950ad0.zip
replace multiple gets with a single get and record bind
darcs-hash:20070404010524-9c5c1-ae8b8c6a6e47d6676fb1fa77d800eb6485ac3424.gz
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index 1e2cd70..c259d74 100644
--- a/Main.hs
+++ b/Main.hs
@@ -169,8 +169,7 @@ handle e@(CrossingEvent {event_type = t})
-- configure a window
handle e@(ConfigureRequestEvent {window = w}) = do
- dpy <- gets display
- ws <- gets workspace
+ XState { display = dpy, workspace = ws } <- get
when (W.member w ws) $ -- already managed, reconfigure (see client:configure()
trace ("Reconfigure already managed window: " ++ show w)