From d6da4ba75c0a86b4ec32cfa17287b46b633ebe56 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Thu, 2 Oct 2008 09:18:58 +0200 Subject: Ignore _NET_WM_STATE_HIDDEN property changes as suggested by EWMH. --- src/event.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/event.c b/src/event.c index 5b3cfd3c..14eba13a 100644 --- a/src/event.c +++ b/src/event.c @@ -1489,6 +1489,13 @@ handleEvent (CompDisplay *d, state = getWindowState (d, w->id); state = constrainWindowState (state, w->actions); + /* EWMH suggests that we ignore changes + to _NET_WM_STATE_HIDDEN */ + if (w->state & CompWindowStateHiddenMask) + state |= CompWindowStateHiddenMask; + else + state &= ~CompWindowStateHiddenMask; + if (state != w->state) { w->state = state; -- cgit v1.2.3