do not cache atom values within Xmonad, instead let Xlib worry about caching (a documented feature)

This commit is contained in:
Stefan O'Rear
2007-06-04 01:39:38 +00:00
parent 29a32bc146
commit f06d042b56
3 changed files with 13 additions and 8 deletions

View File

@@ -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