[Pkg-wmaker-commits] [wmaker] 05/40: wmaker: allow alt+tabbed windows over fullscreen

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Mar 11 13:08:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmaker.

commit 5561199c871293cca0b3dc2c6feff0d7783111c6
Author: Bjørn Mork <bjorn at mork.no>
Date:   Tue Jul 12 23:49:47 2016 +0200

    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 at asmblr.net>
    Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 src/actions.c | 4 ++++
 src/cycling.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/actions.c b/src/actions.c
index e6a91d5..4bc3e07 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -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);
diff --git a/src/cycling.c b/src/cycling.c
index 916d947..94b9183 100644
--- a/src/cycling.c
+++ b/src/cycling.c
@@ -62,6 +62,10 @@ static WWindow *change_focus_and_raise(WWindow *newFocused, WWindow *oldFocused,
 	if (!newFocused)
 		return oldFocused;
 
+	/* allow the focused window to float on top of a fullscreen window */
+	if (oldFocused->flags.fullscreen)
+		ChangeStackingLevel(oldFocused->frame->core, WMNormalLevel);
+
 	wWindowFocus(newFocused, oldFocused);
 	oldFocused = newFocused;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmaker.git



More information about the Pkg-wmaker-commits mailing list