From 09686f3f3ef71dfbcc6f1ee09bfcf0b50079fc0f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 11 Oct 2008 09:52:03 +0200 Subject: [PATCH] property: check input flag set (FS#340) Signed-off-by: Julien Danjou --- property.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/property.c b/property.c index d2ece640..6f21fabb 100644 --- a/property.c +++ b/property.c @@ -193,11 +193,12 @@ property_update_wm_hints(client_t *c, xcb_get_property_reply_t *reply) widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); } - if((wmh.flags & XCB_WM_HINT_STATE) && + if(wmh.flags & XCB_WM_HINT_STATE && wmh.initial_state == XCB_WM_STATE_WITHDRAWN) client_setborder(c, 0); - c->nofocus = !wmh.input; + if(wmh.flags & XCB_WM_HINT_INPUT) + c->nofocus = !wmh.input; } static int