[hackers] [wmii] Make sure that transient windows are managed on startup.

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Feb 18 19:46:34 2007

changeset: 1900:85f3ec9984df
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 18 13:45:36 2007 -0500
summary: Make sure that transient windows are managed on startup.

diff -r 73bb05e02153 -r 85f3ec9984df main.c
--- a/main.c Sun Feb 18 13:27:51 2007 -0500
+++ b/main.c Sun Feb 18 13:45:36 2007 -0500
@@ -45,6 +45,13 @@ scan_wins() {
                         if(wa.override_redirect || XGetTransientForHint(blz.dpy, wins[i], &d1))
                                 continue;
                         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));
                 }
         }
Received on Sun Feb 18 2007 - 19:46:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:25 UTC