X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=2c803fa5078062f18c41155dc9592f1f0ff137cb;hb=eeffbe11ab8b3ea94eefcf178003e36d389f8776;hp=08cda34c2b55585c7471ab59b78c1f247b950a53;hpb=8a9475a0dd9b8751b9b0ed4c7da4db09232e318e;p=st.git 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;