diff options
author | Danny Baumann <dannybaumann@web.de> | 2009-01-21 10:07:34 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2009-01-21 10:09:53 +0100 |
commit | b7ffa6e2a45ad1ceb3fde1e7f90b733e50a334e2 (patch) | |
tree | e85c70ad757d7ebd989d6cd7319b16603bf9f196 /src | |
parent | 814809ffffe47f829b784f7bd246026bfcdecf0f (diff) |
Keep window above other fullscreen windows if its fullscreen state changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/event.c b/src/event.c index 76c4f06a..50bce9ca 100644 --- a/src/event.c +++ b/src/event.c @@ -1784,11 +1784,12 @@ handleEvent (CompDisplay *d, /* raise the window whenever its fullscreen state, above/below state or maximization state changed */ - if (dState & (CompWindowStateFullscreenMask | - CompWindowStateAboveMask | - CompWindowStateBelowMask | - CompWindowStateMaximizedHorzMask | - CompWindowStateMaximizedVertMask)) + if (dState & CompWindowStateFullscreenMask) + stackingUpdateMode = CompStackingUpdateModeAboveFullscreen; + else if (dState & (CompWindowStateAboveMask | + CompWindowStateBelowMask | + CompWindowStateMaximizedHorzMask | + CompWindowStateMaximizedVertMask)) stackingUpdateMode = CompStackingUpdateModeNormal; changeWindowState (w, wState); |