property: check input flag set (FS#340)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
71f999eb7f
commit
09686f3f3e
|
@ -193,10 +193,11 @@ property_update_wm_hints(client_t *c, xcb_get_property_reply_t *reply)
|
||||||
|
|
||||||
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
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)
|
wmh.initial_state == XCB_WM_STATE_WITHDRAWN)
|
||||||
client_setborder(c, 0);
|
client_setborder(c, 0);
|
||||||
|
|
||||||
|
if(wmh.flags & XCB_WM_HINT_INPUT)
|
||||||
c->nofocus = !wmh.input;
|
c->nofocus = !wmh.input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue