aboutsummaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2007-06-04 03:39:38 +0200
committerStefan O'Rear <stefanor@cox.net>2007-06-04 03:39:38 +0200
commit912f4f963746b3d30cf13823fe0ed25d4b61daee (patch)
tree87f7c9dfae0cc1597d9151974dccff52f7c45f86 /Operations.hs
parent848f4abe7f8ed9fd304e68dac87cf7a30f828f17 (diff)
downloadxmonad-912f4f963746b3d30cf13823fe0ed25d4b61daee.tar.gz
xmonad-912f4f963746b3d30cf13823fe0ed25d4b61daee.tar.xz
xmonad-912f4f963746b3d30cf13823fe0ed25d4b61daee.zip
do not cache atom values within Xmonad, instead let Xlib worry about caching (a documented feature)
darcs-hash:20070604013938-e3110-8dc84f03278c55076a5cf83013974689c4861ffc.gz
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index 81df02a..ab99946 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -98,7 +98,8 @@ modifyGap f = do
--
kill :: X ()
kill = withDisplay $ \d -> withFocused $ \w -> do
- XConf {wmdelete = wmdelt, wmprotocols = wmprot} <- ask
+ wmdelt <- atom_WM_DELETE_WINDOW ; wmprot <- atom_WM_PROTOCOLS
+
protocols <- io $ getWMProtocols d w
io $ if wmdelt `elem` protocols
then allocaXEvent $ \ev -> do