summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.hpp
diff options
context:
space:
mode:
authorMaarten van Gompel <proycon@anaproy.nl>2022-12-12 15:34:52 +0100
committerGitHub <noreply@github.com>2022-12-12 14:34:52 +0000
commit46891b12cf307d8bf934b42e5b4919fa594075f0 (patch)
treeaf5c51ee0eba81cef1799576f71759ba0033db9f /src/layout/MasterLayout.hpp
parent0c1bec023fa13df651c39c5febcecb35b5ff277a (diff)
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.
Diffstat (limited to 'src/layout/MasterLayout.hpp')
-rw-r--r--src/layout/MasterLayout.hpp2
1 files changed, 2 insertions, 0 deletions
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;