From 1d93b2edb2f765886979db742491fbe642d7f7a3 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 11 Sep 2012 13:37:58 +1000 Subject: [PATCH] transient initial-map bug --- xoat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xoat.c b/xoat.c index 12c643e..50dfe32 100644 --- a/xoat.c +++ b/xoat.c @@ -143,6 +143,7 @@ client* window_build_client(Window win) if (XGetWindowAttributes(display, c->window, &c->attr)) { c->visible = c->attr.map_state == IsViewable ? 1:0; + XGetTransientForHint(display, c->window, &c->transient_for); window_get_atom_prop(win, atoms[_NET_WM_WINDOW_TYPE], &c->type, 1); c->manage = !c->attr.override_redirect @@ -165,7 +166,6 @@ client* window_build_client(Window win) if (c->visible) { - XGetTransientForHint(display, c->window, &c->transient_for); window_get_atom_prop(c->window, atoms[_NET_WM_STATE], c->states, MAX_NET_WM_STATES); c->urgent = client_has_state(c, atoms[_NET_WM_STATE_DEMANDS_ATTENTION]);