Avoid to loose the focus when invoking dmenu - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset c3e727d3d6f5671208c722d0933d4f70f9ae261e
(DIR) parent 98f2799bcfa010e5404cd20d7b81004e7646d4e6
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 2 Jan 2019 19:13:13
Avoid to loose the focus when invoking dmenu
Diffstat:
wip/dmenu-git/patch-dmenu.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff -r 98f2799bcfa0 -r c3e727d3d6f5 wip/dmenu-git/patch-dmenu.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/dmenu-git/patch-dmenu.c Wed Jan 02 19:13:13 2019 +0100
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Avoid to possibly "loose" the focus (at least on st sometimes when
+invoking dmenu the "full white block cursor" become "full empty
+block cursor" like when st window is not focused).
+
+--- dmenu.c.orig 2018-12-01 11:28:54.000000000 +0000
++++ dmenu.c
+@@ -667,7 +667,6 @@ setup(void)
+ XNClientWindow, win, XNFocusWindow, win, NULL);
+
+ XMapRaised(dpy, win);
+- XSetInputFocus(dpy, win, RevertToParent, CurrentTime);
+ if (embed) {
+ XSelectInput(dpy, parentwin, FocusChangeMask);
+ if (XQueryTree(dpy, parentwin, &dw, &w, &dws, &du) && dws) {