diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-11-22 16:01:02 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-11-22 16:01:02 +0000 |
| commit | 745a82ce8ab19d958e344f5925bb1dc8ea7d6a53 (patch) | |
| tree | 6ef992f0b52c5ca2492e248d5433f8edbc7cb1ba /src/desktop/Workspace.hpp | |
| parent | a847bc67b1efcf3a0fa9c8a3a1da1a79743940c1 (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.hpp | 20 |
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); |
