Merge branch 'master' into gnome-updates
[jackhill/guix/guix.git] / gnu / packages / patches / evilwm-lost-focus-bug.patch
CommitLineData
c595cd47
EB
1evilwm may sometimes lose focus after closing a window. This means that
2evilwm stops responding to keyboard shortcuts, and if no other window is open
3which the mouse can be moved over to regain focus evilwm becomes unusable and
4has to be restarted.
5
6Patch derived from discussion at
7https://wiki.archlinux.org/index.php/Evilwm#Lost_focus_bug_fix
8
9--- evilwm-1.1.1/client.c
10+++ evilwm-1.1.1/client.c
11@@ -172,6 +172,7 @@
12 * _NET_WM_STATE) */
13 if (c->remove) {
14 LOG_DEBUG("setting WithdrawnState\n");
15+ XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
16 set_wm_state(c, WithdrawnState);
17 ewmh_withdraw_client(c);
18 } else {