]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t set the urgency flag if the window is currently active
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 20 Nov 2009 14:55:54 +0000 (15:55 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 20 Nov 2009 14:55:54 +0000 (15:55 +0100)
src/handlers.c

index 56be49ce5a78f6d2e169beb4c7dd42cf27080cb0..6765be8abb3100dd71145e056743b607d7332ebf 100644 (file)
@@ -952,6 +952,12 @@ int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t
                         return 1;
         }
 
+        Client *last_focused = SLIST_FIRST(&(c_ws->focus_stack));
+        if (client == last_focused) {
+                LOG("Ignoring urgency flag for current client\n");
+                return 1;
+        }
+
         /* Update the flag on the client directly */
         client->urgent = (xcb_wm_hints_get_urgency(&hints) != 0);
         CLIENT_LOG(client);