tried better transient window
git-svn-id: http://tint2.googlecode.com/svn/trunk@194 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -79,18 +79,16 @@ int window_is_hidden (Window win)
|
|||||||
Atom *at;
|
Atom *at;
|
||||||
int count, i;
|
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);
|
at = server_get_property (win, server.atom._NET_WM_STATE, XA_ATOM, &count);
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
|
if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
|
||||||
XFree(at);
|
XFree(at);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (at[i] == server.atom._NET_WM_STATE_MODAL) {
|
||||||
|
XFree(at);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
XFree(at);
|
XFree(at);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user