diff options
| author | Sefa Eyeoglu <contact@scrumplex.net> | 2024-02-10 00:47:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-09 23:47:00 +0000 |
| commit | 334a0f03ee2f80118418c16cc06005a1fe8cfd60 (patch) | |
| tree | 97df9e491777145dfd012240ea0555ea118d8cba /src/managers/KeybindManager.cpp | |
| parent | 289d4241bea72ebd891e037996ec4ffd356aadc8 (diff) | |
keybinds: Fix focus not moving along when moving workspace (#4660)
---------
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index a5419e67..db6bbbbc 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1459,14 +1459,18 @@ void CKeybindManager::exitHyprland(std::string argz) { void CKeybindManager::moveCurrentWorkspaceToMonitor(std::string args) { CMonitor* PMONITOR = g_pCompositor->getMonitorFromString(args); - if (!PMONITOR) + if (!PMONITOR) { + Debug::log(ERR, "Ignoring moveCurrentWorkspaceToMonitor: monitor doesnt exist"); return; + } // get the current workspace const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastMonitor->activeWorkspace); - if (!PCURRENTWORKSPACE) + if (!PCURRENTWORKSPACE) { + Debug::log(ERR, "moveCurrentWorkspaceToMonitor invalid workspace!"); return; + } g_pCompositor->moveWorkspaceToMonitor(PCURRENTWORKSPACE, PMONITOR); } |
