From c75a021fbda4df34dc017369f877f018855e0609 Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Mon, 21 Sep 2009 18:58:31 +0000 Subject: [PATCH] tried better transient window --- src/util/window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/util/window.c b/src/util/window.c index 1cc91a8..eaab1b7 100644 --- a/src/util/window.c +++ b/src/util/window.c @@ -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); -- 2.45.2