summaryrefslogtreecommitdiff
path: root/src/helpers/Workspace.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-25 10:25:36 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-25 10:25:36 +0200
commit0ae6563fefcad255195a4cb296907c0e1732eb94 (patch)
tree43ab0334b6e6d4204146f64cbb45f8d70fa12868 /src/helpers/Workspace.cpp
parentc8425926c90da1aca425ad4a5468d9345100ac28 (diff)
workspace set active
Diffstat (limited to 'src/helpers/Workspace.cpp')
-rw-r--r--src/helpers/Workspace.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers/Workspace.cpp b/src/helpers/Workspace.cpp
index 5341fdf7..00ac6132 100644
--- a/src/helpers/Workspace.cpp
+++ b/src/helpers/Workspace.cpp
@@ -64,4 +64,10 @@ void CWorkspace::startAnim(bool in, bool left) {
m_vRenderOffset = Vector2D(left ? -PMONITOR->vecSize.x : PMONITOR->vecSize.x, 0);
}
}
+}
+
+void CWorkspace::setActive(bool on) {
+ if (m_pWlrHandle) {
+ wlr_ext_workspace_handle_v1_set_active(m_pWlrHandle, on);
+ }
} \ No newline at end of file