]> git.sur5r.net Git - i3/i3/blobdiff - src/window.c
Ignore InputHint when not in WM_HINTS
[i3/i3] / src / window.c
index 5485bcc31fd0006b0dee655549a45a0c38867f2b..36737943fe92cc9a0b2c564c4f4300cb22d7c32b 100644 (file)
@@ -254,8 +254,10 @@ void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop, bool *ur
         return;
     }
 
-    win->doesnt_accept_focus = !hints.input;
-    LOG("WM_HINTS.input changed to \"%d\"\n", hints.input);
+    if (hints.flags & XCB_ICCCM_WM_HINT_INPUT) {
+        win->doesnt_accept_focus = !hints.input;
+        LOG("WM_HINTS.input changed to \"%d\"\n", hints.input);
+    }
 
     if (urgency_hint != NULL)
         *urgency_hint = (xcb_icccm_wm_hints_get_urgency(&hints) != 0);