summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-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;