*fix* issue 272

*fix* correct transient window handling (f.ex window3 is transient for window2 and window2 transient for window1 and window1 is already in tint2, so 
window3 will not be added)


git-svn-id: http://tint2.googlecode.com/svn/trunk@542 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2010-08-18 12:32:08 +00:00
parent 95b35aefc0
commit d7914dd0ad
3 changed files with 14 additions and 7 deletions

View 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);