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:
committed by
Carlos R. Mafra
parent
6429847494
commit
5561199c87
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user