Make sure that transient windows are managed on startup.

This commit is contained in:
Kris Maglione 2007-02-18 13:45:36 -05:00
parent 6efb6703f3
commit 2af6526adb
1 changed files with 7 additions and 0 deletions

7
main.c
View File

@ -47,6 +47,13 @@ scan_wins() {
if(wa.map_state == IsViewable)
manage_client(create_client(wins[i], &wa));
}
for(i = 0; i < num; i++) {
if(!XGetWindowAttributes(blz.dpy, wins[i], &wa))
continue;
if(XGetTransientForHint(blz.dpy, wins[i], &d1)
&& wa.map_state == IsViewable)
manage_client(create_client(wins[i], &wa));
}
}
if(wins)
XFree(wins);