tried better transient window

git-svn-id: http://tint2.googlecode.com/svn/trunk@194 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-09-21 18:58:31 +00:00
parent a3177fadd9
commit f81e1b2e90

View file

@ -79,18 +79,16 @@ int window_is_hidden (Window win)
Atom *at;
int count, i;
if (XGetTransientForHint(server.dsp, win, &window) != 0) {
if (window) {
return 1;
}
}
at = server_get_property (win, server.atom._NET_WM_STATE, XA_ATOM, &count);
for (i = 0; i < count; i++) {
if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
XFree(at);
return 1;
}
if (at[i] == server.atom._NET_WM_STATE_MODAL) {
XFree(at);
return 1;
}
}
XFree(at);