Kill window without focusing it first

This patch requires the patch "add killWindow function" in xmonad.
Before this patch, people would experience “workspace flicker” when closing
a window via EWMH that is not on the current workspace, for example when
quitting pidgin via the panel icon.
This commit is contained in:
Joachim Breitner
2008-10-05 00:25:33 +00:00
parent a2cf9d4d97
commit 6d17e66bb3

View File

@@ -151,8 +151,7 @@ handle ClientMessageEvent {
else if mt == a_aw then do
windows $ W.focusWindow w
else if mt == a_cw then do
windows $ W.focusWindow w
kill
killWindow w
else trace $ "Unknown ClientMessageEvent " ++ show mt
handle _ = undefined -- does not happen, as otherwise ewmhDesktopsHook would not match