From 4516bfcf3a0dbfcac8d73a9620a76f98fbbd007b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Mar 2008 14:46:45 +0100 Subject: [PATCH] Check for EWMH hints after reloading client props This avoid to think a client has already props in case it's tagged with EWMH and then do not use its rules --- client.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client.c b/client.c index ce78d0af8..90901f00d 100644 --- a/client.c +++ b/client.c @@ -250,7 +250,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen) { Client *c, *t = NULL; Window trans; - Bool rettrans; + Bool rettrans, retloadprops; XWindowChanges wc; Tag *tag; Rule *rule; @@ -290,11 +290,14 @@ client_manage(Window w, XWindowAttributes *wa, int screen) flags = client_updatesizehints(c); client_updatewmhints(c); - /* First check clients hints */ + /* Try to load props if any */ + retloadprops = client_loadprops(c, screen); + + /* Then check clients hints */ ewmh_check_client_hints(c); - /* loadprops or apply rules if no props */ - if(!client_loadprops(c, screen)) + /* Then apply rules if no props */ + if(!retloadprops) { /* Get the client's rule */ if((rule = rule_matching_client(c)))