]> 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:56:38 +0000 (15:56 +0100)
src/handlers.c

index d666641ef37f2a6b2ff16d731e79745bd521a1da..d86200445e1e780e3aeea2e37c14c62c3b977f71 100644 (file)
@@ -950,6 +950,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);