From: Michael Stapelberg Date: Fri, 20 Nov 2009 14:55:54 +0000 (+0100) Subject: Bugfix: Don’t set the urgency flag if the window is currently active X-Git-Tag: 3.e~6^2~231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29464dc79184bce92388486fe78190de07d52d47;p=i3%2Fi3 Bugfix: Don’t set the urgency flag if the window is currently active --- diff --git a/src/handlers.c b/src/handlers.c index 56be49ce..6765be8a 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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);