summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2024-02-10 00:47:00 +0100
committerGitHub <noreply@github.com>2024-02-09 23:47:00 +0000
commit334a0f03ee2f80118418c16cc06005a1fe8cfd60 (patch)
tree97df9e491777145dfd012240ea0555ea118d8cba /src/helpers
parent289d4241bea72ebd891e037996ec4ffd356aadc8 (diff)
keybinds: Fix focus not moving along when moving workspace (#4660)
--------- Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.cpp4
-rw-r--r--src/helpers/Monitor.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index f084d3c0..cb69318f 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -571,8 +571,8 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal, bool
g_pCompositor->updateSuspendedStates();
}
-void CMonitor::changeWorkspace(const int& id, bool internal) {
- changeWorkspace(g_pCompositor->getWorkspaceByID(id), internal);
+void CMonitor::changeWorkspace(const int& id, bool internal, bool noMouseMove, bool noFocus) {
+ changeWorkspace(g_pCompositor->getWorkspaceByID(id), internal, noMouseMove, noFocus);
}
void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 43de8d12..d5aba751 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -142,7 +142,7 @@ class CMonitor {
bool isMirror();
float getDefaultScale();
void changeWorkspace(CWorkspace* const pWorkspace, bool internal = false, bool noMouseMove = false, bool noFocus = false);
- void changeWorkspace(const int& id, bool internal = false);
+ void changeWorkspace(const int& id, bool internal = false, bool noMouseMove = false, bool noFocus = false);
void setSpecialWorkspace(CWorkspace* const pWorkspace);
void setSpecialWorkspace(const int& id);
void moveTo(const Vector2D& pos);