From 2d7f71ee130788e52b747086a72dd36f8b1c0c5e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 20 Nov 2009 15:55:54 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20set=20the=20urgency=20?= =?utf8?q?flag=20if=20the=20window=20is=20currently=20active?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/handlers.c b/src/handlers.c index d666641e..d8620044 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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); -- 2.39.5