mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-21 15:03:48 -07:00
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:
@@ -151,8 +151,7 @@ handle ClientMessageEvent {
|
|||||||
else if mt == a_aw then do
|
else if mt == a_aw then do
|
||||||
windows $ W.focusWindow w
|
windows $ W.focusWindow w
|
||||||
else if mt == a_cw then do
|
else if mt == a_cw then do
|
||||||
windows $ W.focusWindow w
|
killWindow w
|
||||||
kill
|
|
||||||
else trace $ "Unknown ClientMessageEvent " ++ show mt
|
else trace $ "Unknown ClientMessageEvent " ++ show mt
|
||||||
handle _ = undefined -- does not happen, as otherwise ewmhDesktopsHook would not match
|
handle _ = undefined -- does not happen, as otherwise ewmhDesktopsHook would not match
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user