diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-10-02 09:18:58 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-10-02 09:18:58 +0200 |
commit | d6da4ba75c0a86b4ec32cfa17287b46b633ebe56 (patch) | |
tree | 21fb8c571dc5fcd4eab64648e49e6b5ec920319e /src | |
parent | 633385e5e54147e750c6ca5a179f803373ab3e3e (diff) |
Ignore _NET_WM_STATE_HIDDEN property changes as suggested by EWMH.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |