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:
Emmanuel Lepage Vallée 2017-10-31 19:20:37 +01:00 committed by GitHub
commit f3f0f42b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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)
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 */
ewmh_client_check_hints(c);
/* Push client in stack */
stack_client_push(c);
/* Put the window in normal state. */
xwindow_set_state(c->window, XCB_ICCCM_WM_STATE_NORMAL);
/* Request our response */
xcb_get_property_reply_t *reply =
xcb_get_property_reply(globalconf.connection, startup_id_q, NULL);