From: Thierry Lorthiois Date: Mon, 21 Sep 2009 18:58:31 +0000 (+0000) Subject: tried better transient window X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c75a021fbda4df34dc017369f877f018855e0609;p=chaz%2Ftint2 tried better transient window --- 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);