]> Dogcows Code - chaz/tint2/blobdiff - src/util/window.c
*fix* issue 272
[chaz/tint2] / src / util / window.c
index f4ef6a04ac306277e46d6561a7cda780c150ef02..dc38d24f3ef84c0e46f59070243c78cfbf3dd2f5 100644 (file)
@@ -87,9 +87,12 @@ int window_is_hidden (Window win)
                        return 1;
                }
                // do not add transient_for windows if the transient window is already in the taskbar
-               if ( XGetTransientForHint(server.dsp, win, &window) && task_get_tasks(window) ) {
-                       XFree(at);
-                       return 1;
+               window=win;
+               while ( XGetTransientForHint(server.dsp, window, &window) ) {
+                       if ( task_get_tasks(window) ) {
+                               XFree(at);
+                               return 1;
+                       }
                }
        }
        XFree(at);
This page took 0.022808 seconds and 4 git commands to generate.