Merge pull request #2096 from psychon/iconic_state_across_restart
client.c: Set WM_STATE_NORMAL before checking _NET_WM_STATE
This commit is contained in:
commit
f3f0f42b24
|
@ -1498,15 +1498,15 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, xcb_get_window_at
|
||||||
if ((*oc)->transient_for_window == w)
|
if ((*oc)->transient_for_window == w)
|
||||||
client_find_transient_for(*oc);
|
client_find_transient_for(*oc);
|
||||||
|
|
||||||
|
/* Put the window in normal state. */
|
||||||
|
xwindow_set_state(c->window, XCB_ICCCM_WM_STATE_NORMAL);
|
||||||
|
|
||||||
/* Then check clients hints */
|
/* Then check clients hints */
|
||||||
ewmh_client_check_hints(c);
|
ewmh_client_check_hints(c);
|
||||||
|
|
||||||
/* Push client in stack */
|
/* Push client in stack */
|
||||||
stack_client_push(c);
|
stack_client_push(c);
|
||||||
|
|
||||||
/* Put the window in normal state. */
|
|
||||||
xwindow_set_state(c->window, XCB_ICCCM_WM_STATE_NORMAL);
|
|
||||||
|
|
||||||
/* Request our response */
|
/* Request our response */
|
||||||
xcb_get_property_reply_t *reply =
|
xcb_get_property_reply_t *reply =
|
||||||
xcb_get_property_reply(globalconf.connection, startup_id_q, NULL);
|
xcb_get_property_reply(globalconf.connection, startup_id_q, NULL);
|
||||||
|
|
Loading…
Reference in New Issue