summaryrefslogtreecommitdiff
path: root/src/helpers/Workspace.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-11 19:51:37 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-11 19:51:37 +0200
commita8e872923045eddd314bc26553401a6eb17c57cc (patch)
treee8fa6a207b485cebd78f752e7683452000f0be48 /src/helpers/Workspace.hpp
parentb56343133d21622a6187bb1ef8906023ecbc09ef (diff)
Added zext_workspace protocol support 🎉
Diffstat (limited to 'src/helpers/Workspace.hpp')
-rw-r--r--src/helpers/Workspace.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/helpers/Workspace.hpp b/src/helpers/Workspace.hpp
index d4ec5b05..465c385b 100644
--- a/src/helpers/Workspace.hpp
+++ b/src/helpers/Workspace.hpp
@@ -2,8 +2,16 @@
#include "../defines.hpp"
-struct SWorkspace {
- int ID = -1;
- uint64_t monitorID = -1;
- bool hasFullscreenWindow = false;
+class CWorkspace {
+public:
+ CWorkspace(int monitorID);
+ ~CWorkspace();
+
+ int m_iID = -1;
+ uint64_t m_iMonitorID = -1;
+ bool m_bHasFullscreenWindow = false;
+
+ wlr_ext_workspace_handle_v1* m_pWlrHandle = nullptr;
+
+ wl_array m_wlrCoordinateArr;
}; \ No newline at end of file