Hi people, the attached patch removes the UrgencyHint flag from a client if it gets focused. This is to comply with the EWMH specs which say it's the window managers job to care for removal of that hint.
--
Gregor Best
From 4eb3ca8962678efb0bed5b225b2d81a8120ec94e Mon Sep 17 00:00:00 2001 From: Gregor Best <[email protected]> Date: Wed, 11 Feb 2009 15:18:02 +0100 Subject: [PATCH] client.c: remove urgent hint on focus According to EWMH, the window manager is responsible for removing the urgent state of a client. Signed-off-by: Gregor Best <[email protected]> --- client.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client.c b/client.c index ea107f6..0dbe72f 100644 --- a/client.c +++ b/client.c @@ -274,6 +274,10 @@ client_focus(client_t *c) luaA_dofunction(globalconf.L, globalconf.hooks.focus, 1, 0); } + /* according to EWMH, we have to remove the urgent state from a client */ + c->isurgent = false; + ewmh_client_update_hints(c); + ewmh_update_net_active_window(c->phys_screen); } -- 1.6.1.2
signature.asc
Description: PGP signature
