*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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user