#include "window.h"
#include "server.h"
#include "panel.h"
+#include "taskbar.h"
return 1;
}
if (at[i] == server.atom._NET_WM_STATE_MODAL) {
- XFree(at);
- return 1;
+ // do not add modal windows if the transient window is already in the taskbar
+ if ( XGetTransientForHint(server.dsp, win, &window) && task_get_task(window) ) {
+ XFree(at);
+ return 1;
+ }
}
}
XFree(at);