1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

wmaker: allow alt+tabbed windows over fullscreen

Fullscreen windows should only be on top when they are in focus. Change
the stacking level temporarily back to WMNormalLevel if the fullscreen
window loses focus due to an alt+tab operation.

Change the stacking level back to WMFullscreenLevel if the fullscreen
window receives the focus again.

Cc: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
This commit is contained in:
Bjørn Mork
2016-07-12 23:49:47 +02:00
committed by Carlos R. Mafra
parent 6429847494
commit 5561199c87
2 changed files with 8 additions and 0 deletions

View File

@@ -216,6 +216,10 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
if (wPreferences.highlight_active_app)
wApplicationDeactivate(oapp);
}
/* reset fullscreen if temporarily removed due to lost focus*/
if (wwin->flags.fullscreen)
ChangeStackingLevel(wwin->frame->core, WMFullscreenLevel);
}
wWindowFocus(wwin, focused);