summaryrefslogtreecommitdiff
path: root/src/desktop/Workspace.hpp
diff options
context:
space:
mode:
authorBrenno Lemos <dev@brenno.codes>2024-05-11 20:03:32 -0300
committerGitHub <noreply@github.com>2024-05-12 00:03:32 +0100
commit33a7b7bb6b307d6e4a093f75ffdda0419cd7ffaf (patch)
tree8bd1bc79f5a16fb56aa9b81db28f88925b010b89 /src/desktop/Workspace.hpp
parent15072831cfd9efccebd1ad27b21c5604f224aa1b (diff)
core: fix on-empty workspace being called too often (#6026)
Diffstat (limited to 'src/desktop/Workspace.hpp')
-rw-r--r--src/desktop/Workspace.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/desktop/Workspace.hpp b/src/desktop/Workspace.hpp
index 3fae3dfc..17431215 100644
--- a/src/desktop/Workspace.hpp
+++ b/src/desktop/Workspace.hpp
@@ -15,9 +15,9 @@ class CWindow;
class CWorkspace {
public:
- static PHLWORKSPACE create(int id, int monitorID, std::string name, bool special = false);
+ static PHLWORKSPACE create(int id, int monitorID, std::string name, bool special = false, bool isEmtpy = true);
// use create() don't use this
- CWorkspace(int id, int monitorID, std::string name, bool special = false);
+ CWorkspace(int id, int monitorID, std::string name, bool special = false, bool isEmpty = true);
~CWorkspace();
// Workspaces ID-based have IDs > 0
@@ -58,6 +58,8 @@ class CWorkspace {
// last monitor (used on reconnect)
std::string m_szLastMonitor = "";
+ bool m_bWasCreatedEmtpy = true;
+
bool m_bPersistent = false;
// Inert: destroyed and invalid. If this is true, release the ptr you have.