aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorthejch <[email protected]>2024-03-30 09:58:18 -0700
committerGitHub <[email protected]>2024-03-30 16:58:18 +0000
commit906e49814412921fd6d0e0188416665dd8ef3e0c (patch)
tree7f0939a18bee157481a50033b2584f1a4e69cd15
parenta17d7ba87b661e0f152fa59bc9efdf1da2a84c86 (diff)
downloadHyprland-906e49814412921fd6d0e0188416665dd8ef3e0c.tar.gz
Hyprland-906e49814412921fd6d0e0188416665dd8ef3e0c.zip
dispatchers: open special ws on active monitor instead of mouse monitor (#5330)
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 57b1b4e0..03887514 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1624,9 +1624,6 @@ void CKeybindManager::focusWorkspaceOnCurrentMonitor(std::string args) {
}
void CKeybindManager::toggleSpecialWorkspace(std::string args) {
-
- static auto PFOLLOWMOUSE = CConfigValue<Hyprlang::INT>("input:follow_mouse");
-
std::string workspaceName = "";
int workspaceID = getWorkspaceIDFromString("special:" + args, workspaceName);
@@ -1636,7 +1633,7 @@ void CKeybindManager::toggleSpecialWorkspace(std::string args) {
}
bool requestedWorkspaceIsAlreadyOpen = false;
- const auto PMONITOR = *PFOLLOWMOUSE == 1 ? g_pCompositor->getMonitorFromCursor() : g_pCompositor->m_pLastMonitor;
+ const auto PMONITOR = g_pCompositor->m_pLastMonitor;
int specialOpenOnMonitor = PMONITOR->specialWorkspaceID;
for (auto& m : g_pCompositor->m_vMonitors) {