From 2af6526adbc898e5bcde5dc0af88b68ac52e8bb8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 18 Feb 2007 13:45:36 -0500 Subject: [PATCH] Make sure that transient windows are managed on startup. --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index 58f8c86b..c015e4d4 100644 --- a/main.c +++ b/main.c @@ -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);