X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fwindow.c;h=dc38d24f3ef84c0e46f59070243c78cfbf3dd2f5;hb=4dfce699f6879b5638b044affa6972581ef04bf6;hp=f4ef6a04ac306277e46d6561a7cda780c150ef02;hpb=77c33a531f505a41491d415de36af6fb9ee7b178;p=chaz%2Ftint2 diff --git a/src/util/window.c b/src/util/window.c index f4ef6a0..dc38d24 100644 --- a/src/util/window.c +++ b/src/util/window.c @@ -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);