From 46891b12cf307d8bf934b42e5b4919fa594075f0 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 12 Dec 2022 15:34:52 +0100 Subject: Master layout: lose or inherit fullscreen on deliberate window switching (#1213) * Master layout: Lose fullscreen status when deliberately switching away from a fullscreen window * Master layout: implemented inherit_fullscreen config parameter When set, if you are on a fullscreen window and you cycle to the next, swap master, etc, it will be automatically fullscreened. --- src/layout/MasterLayout.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/layout/MasterLayout.hpp') diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp index b7761cef..06dd8f00 100644 --- a/src/layout/MasterLayout.hpp +++ b/src/layout/MasterLayout.hpp @@ -75,6 +75,8 @@ private: void calculateWorkspace(const int&); CWindow* getNextWindow(CWindow*, bool); int getMastersOnWorkspace(const int&); + bool prepareLoseFocus(CWindow*); + void prepareNewFocus(CWindow*, bool inherit_fullscreen); friend struct SMasterNodeData; friend struct SMasterWorkspaceData; -- cgit v1.2.3