summaryrefslogtreecommitdiff
path: root/src/desktop/Workspace.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-20 22:16:13 +0000
committerGitHub <noreply@github.com>2025-12-20 22:16:13 +0000
commitb9bef6955487b75d13cfedd230bdc4adafedd115 (patch)
tree21400bb6bbb37651ad8e2f3338d2fa5e317b4098 /src/desktop/Workspace.hpp
parent70f54a1e1ba3478a56faf82431b2770bd727431d (diff)
Desktop/history: Move history to desktop (#12676)
Diffstat (limited to 'src/desktop/Workspace.hpp')
-rw-r--r--src/desktop/Workspace.hpp49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/desktop/Workspace.hpp b/src/desktop/Workspace.hpp
index 392ef642..1aad1aaa 100644
--- a/src/desktop/Workspace.hpp
+++ b/src/desktop/Workspace.hpp
@@ -57,29 +57,27 @@ class CWorkspace {
bool m_wasCreatedEmpty = true;
// Inert: destroyed and invalid. If this is true, release the ptr you have.
- bool inert();
- MONITORID monitorID();
- PHLWINDOW getLastFocusedWindow();
- void rememberPrevWorkspace(const PHLWORKSPACE& prevWorkspace);
- std::string getConfigName();
- bool matchesStaticSelector(const std::string& selector);
- void markInert();
- SWorkspaceIDName getPrevWorkspaceIDName() const;
- void updateWindowDecos();
- void updateWindowData();
- int getWindows(std::optional<bool> onlyTiled = {}, std::optional<bool> onlyPinned = {}, std::optional<bool> onlyVisible = {});
- int getGroups(std::optional<bool> onlyTiled = {}, std::optional<bool> onlyPinned = {}, std::optional<bool> onlyVisible = {});
- bool hasUrgentWindow();
- PHLWINDOW getFirstWindow();
- PHLWINDOW getTopLeftWindow();
- PHLWINDOW getFullscreenWindow();
- bool isVisible();
- bool isVisibleNotCovered();
- void rename(const std::string& name = "");
- void forceReportSizesToWindows();
- void updateWindows();
- void setPersistent(bool persistent);
- bool isPersistent();
+ bool inert();
+ MONITORID monitorID();
+ PHLWINDOW getLastFocusedWindow();
+ std::string getConfigName();
+ bool matchesStaticSelector(const std::string& selector);
+ void markInert();
+ void updateWindowDecos();
+ void updateWindowData();
+ int getWindows(std::optional<bool> onlyTiled = {}, std::optional<bool> onlyPinned = {}, std::optional<bool> onlyVisible = {});
+ int getGroups(std::optional<bool> onlyTiled = {}, std::optional<bool> onlyPinned = {}, std::optional<bool> onlyVisible = {});
+ bool hasUrgentWindow();
+ PHLWINDOW getFirstWindow();
+ PHLWINDOW getTopLeftWindow();
+ PHLWINDOW getFullscreenWindow();
+ bool isVisible();
+ bool isVisibleNotCovered();
+ void rename(const std::string& name = "");
+ void forceReportSizesToWindows();
+ void updateWindows();
+ void setPersistent(bool persistent);
+ bool isPersistent();
struct {
CSignalT<> destroy;
@@ -89,10 +87,7 @@ class CWorkspace {
} m_events;
private:
- void init(PHLWORKSPACE self);
- // Previous workspace ID and name is stored during a workspace change, allowing travel
- // to the previous workspace.
- SWorkspaceIDName m_prevWorkspace;
+ void init(PHLWORKSPACE self);
SP<HOOK_CALLBACK_FN> m_focusedWindowHook;
bool m_inert = true;