transient initial-map bug

This commit is contained in:
seanpringle
2012-09-11 13:37:58 +10:00
parent 1ff72ed2bd
commit 1d93b2edb2

2
xoat.c
View File

@@ -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]);