summaryrefslogtreecommitdiff
path: root/src/helpers/Workspace.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-31 17:02:44 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-31 17:02:49 +0200
commitdacaf72e02b8d1819135f6aef3911e8211e98630 (patch)
treebfb2baae27495c34c2b388368e56e8c00361fbf1 /src/helpers/Workspace.hpp
parent0ad261aa9c408aa43b8ff846acf9dab97e29b927 (diff)
remember last window on workspace
Diffstat (limited to 'src/helpers/Workspace.hpp')
-rw-r--r--src/helpers/Workspace.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/Workspace.hpp b/src/helpers/Workspace.hpp
index 3faebdd8..88e72a25 100644
--- a/src/helpers/Workspace.hpp
+++ b/src/helpers/Workspace.hpp
@@ -8,6 +8,8 @@ enum eFullscreenMode : uint8_t {
FULLSCREEN_MAXIMIZED
};
+class CWindow;
+
class CWorkspace {
public:
CWorkspace(int monitorID, std::string name, bool special = false);
@@ -36,6 +38,9 @@ public:
// "scratchpad"
bool m_bIsSpecialWorkspace = false;
+ // last window
+ CWindow* m_pLastFocusedWindow = nullptr;
+
// user-set
bool m_bDefaultFloating = false;
bool m_bDefaultPseudo = false;