mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 12:30:38 +02:00
gnu: evilwm: Add patch for lost-focus bug.
* gnu/packages/patches/evilwm-lost-focus-bug.patch: New patch. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/wm.scm (evilwm)[source]: Use it.
This commit is contained in:
parent
2442e69e41
commit
c595cd47d8
3 changed files with 22 additions and 1 deletions
18
gnu/packages/patches/evilwm-lost-focus-bug.patch
Normal file
18
gnu/packages/patches/evilwm-lost-focus-bug.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
evilwm may sometimes lose focus after closing a window. This means that
|
||||
evilwm stops responding to keyboard shortcuts, and if no other window is open
|
||||
which the mouse can be moved over to regain focus evilwm becomes unusable and
|
||||
has to be restarted.
|
||||
|
||||
Patch derived from discussion at
|
||||
https://wiki.archlinux.org/index.php/Evilwm#Lost_focus_bug_fix
|
||||
|
||||
--- evilwm-1.1.1/client.c
|
||||
+++ evilwm-1.1.1/client.c
|
||||
@@ -172,6 +172,7 @@
|
||||
* _NET_WM_STATE) */
|
||||
if (c->remove) {
|
||||
LOG_DEBUG("setting WithdrawnState\n");
|
||||
+ XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
|
||||
set_wm_state(c, WithdrawnState);
|
||||
ewmh_withdraw_client(c);
|
||||
} else {
|
Loading…
Add table
Add a link
Reference in a new issue