wmaker: fix stacking order of dock and fullscreen
commit6429847494fbcd84e2bab026c3fd9239c7cf8927
authorBjørn Mork <bjorn@mork.no>
Tue, 12 Jul 2016 21:49:46 +0000 (12 23:49 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 12 Jul 2016 22:21:00 +0000 (12 23:21 +0100)
treef1689347295ace727bd5237f3d6c2d3c56abb592
parentb7a1528833cf1abbe33067570f4f0d4a09f80ebc
wmaker: fix stacking order of dock and fullscreen

This reverts the commits:
 311ab6b08ccf ("Raise fullscreened window")
 a504370f3b27 ("Remove WMFullscreenLevel")

Removing WMFullscreenLevel had the side effect that a dock or panel
having the _NET_WM_WINDOW_TYPE_DOCK type would stack on top of
fullscreen windows, obscuring part of them.  This is unwanted. No
other window should cover a focused fullscreen window:.
https://specifications.freedesktop.org/wm-spec/latest/ar01s09.html#STACKINGORDER

Simply raising the fullscreen window to the top of the stack of normal
windows is not sufficient if there are windows with higher stacking
levels present.  The separate WMFullscreenLevel is needed.

Cc: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
src/WindowMaker.h
src/actions.c
src/wmspec.c