summaryrefslogtreecommitdiff
path: root/src/desktop/Workspace.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-11-22 16:01:02 +0000
committerVaxry <vaxry@vaxry.net>2024-11-22 16:01:02 +0000
commit745a82ce8ab19d958e344f5925bb1dc8ea7d6a53 (patch)
tree6ef992f0b52c5ca2492e248d5433f8edbc7cb1ba /src/desktop/Workspace.hpp
parenta847bc67b1efcf3a0fa9c8a3a1da1a79743940c1 (diff)
core: workspace-related function cleanup / refactor
CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
Diffstat (limited to 'src/desktop/Workspace.hpp')
-rw-r--r--src/desktop/Workspace.hpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/desktop/Workspace.hpp b/src/desktop/Workspace.hpp
index 3ed9f50c..606485a2 100644
--- a/src/desktop/Workspace.hpp
+++ b/src/desktop/Workspace.hpp
@@ -63,23 +63,29 @@ class CWorkspace {
// Inert: destroyed and invalid. If this is true, release the ptr you have.
bool inert();
-
void startAnim(bool in, bool left, bool instant = false);
void setActive(bool on);
-
void moveToMonitor(const MONITORID&);
MONITORID monitorID();
-
PHLWINDOW getLastFocusedWindow();
void rememberPrevWorkspace(const PHLWORKSPACE& prevWorkspace);
-
std::string getConfigName();
-
bool matchesStaticSelector(const std::string& selector);
-
void markInert();
-
SWorkspaceIDName getPrevWorkspaceIDName(bool perMonitor) const;
+ void updateWindowDecos();
+ void updateWindowData();
+ int getWindows(std::optional<bool> onlyTiled = {}, std::optional<bool> onlyVisible = {});
+ int getGroups(std::optional<bool> onlyTiled = {}, 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();
private:
void init(PHLWORKSPACE self);