tMaking st not activate the cursor in case of Mod + k in dwm. - st - [fork] cus… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit eeffbe11ab8b3ea94eefcf178003e36d389f8776 | |
parent 8a9475a0dd9b8751b9b0ed4c7da4db09232e318e | |
Author: Christoph Lohmann <[email protected]> | |
Date: Mon, 11 Feb 2013 22:20:16 +0100 | |
Making st not activate the cursor in case of Mod + k in dwm. | |
Thanks Jens Nyberg <[email protected]>! | |
Diffstat: | |
M st.c | 5 +++++ | |
1 file changed, 5 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -2986,6 +2986,11 @@ xseturgency(int add) { | |
void | |
focus(XEvent *ev) { | |
+ XFocusChangeEvent *e = &ev->xfocus; | |
+ | |
+ if(e->mode == NotifyGrab) | |
+ return; | |
+ | |
if(ev->type == FocusIn) { | |
XSetICFocus(xw.xic); | |
xw.state |= WIN_FOCUSED; |