From eeffbe11ab8b3ea94eefcf178003e36d389f8776 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Mon, 11 Feb 2013 22:20:16 +0100 Subject: [PATCH] Making st not activate the cursor in case of Mod + k in dwm. Thanks Jens Nyberg ! --- st.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/st.c b/st.c index 08cda34..2c803fa 100644 --- a/st.c +++ b/st.c @@ -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; -- libgit2 1.1.1