]> Dogcows Code - chaz/tint2/commitdiff
tried better transient window
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Mon, 21 Sep 2009 18:58:31 +0000 (18:58 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Mon, 21 Sep 2009 18:58:31 +0000 (18:58 +0000)
src/util/window.c

index 1cc91a81f124b7bf9ad0c4f08e5d2ed0fd91e22a..eaab1b7980ed6673bffabc43b554a4cccf5f2598 100644 (file)
@@ -79,18 +79,16 @@ int window_is_hidden (Window win)
        Atom *at;
        int count, i;
 
-       if (XGetTransientForHint(server.dsp, win, &window) != 0) {
-               if (window) {
-                       return 1;
-               }
-       }
-
        at = server_get_property (win, server.atom._NET_WM_STATE, XA_ATOM, &count);
        for (i = 0; i < count; i++) {
                if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
                        XFree(at);
                        return 1;
                }
+               if (at[i] == server.atom._NET_WM_STATE_MODAL) {
+                       XFree(at);
+                       return 1;
+               }
        }
        XFree(at);
 
This page took 0.025799 seconds and 4 git commands to generate.