aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-02-11 22:20:16 +0100
committerChristoph Lohmann <20h@r-36.net>2013-02-11 22:20:16 +0100
commiteeffbe11ab8b3ea94eefcf178003e36d389f8776 (patch)
tree8babf713affa0a59b5970181611deea7689a41a7
parent8a9475a0dd9b8751b9b0ed4c7da4db09232e318e (diff)
downloadst-patched-eeffbe11ab8b3ea94eefcf178003e36d389f8776.tar.bz2
st-patched-eeffbe11ab8b3ea94eefcf178003e36d389f8776.tar.xz
st-patched-eeffbe11ab8b3ea94eefcf178003e36d389f8776.zip
Making st not activate the cursor in case of Mod + k in dwm.
Thanks Jens Nyberg <jens.nyberg@gmail.com>!
-rw-r--r--st.c5
1 files changed, 5 insertions, 0 deletions
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) {
2986 2986
2987void 2987void
2988focus(XEvent *ev) { 2988focus(XEvent *ev) {
2989 XFocusChangeEvent *e = &ev->xfocus;
2990
2991 if(e->mode == NotifyGrab)
2992 return;
2993
2989 if(ev->type == FocusIn) { 2994 if(ev->type == FocusIn) {
2990 XSetICFocus(xw.xic); 2995 XSetICFocus(xw.xic);
2991 xw.state |= WIN_FOCUSED; 2996 xw.state |= WIN_FOCUSED;