[hackers] [st] Making st not activate the cursor in case of Mod + k in dwm. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Mon, 11 Feb 2013 22:22:47 +0100

commit eeffbe11ab8b3ea94eefcf178003e36d389f8776
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon Feb 11 22:20:16 2013 +0100

    Making st not activate the cursor in case of Mod + k in dwm.
    
    Thanks Jens Nyberg <jens.nyberg_AT_gmail.com>!

diff --git a/st.c b/st.c
index 08cda34..2c803fa 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Mon Feb 11 2013 - 22:22:47 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:26:31 CET