mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 12:41:55 -07:00
fix crash in moveWorkspaceToMonitor
This commit is contained in:
@@ -775,6 +775,11 @@ void CKeybindManager::moveWorkspaceToMonitor(std::string args) {
|
|||||||
|
|
||||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(WORKSPACEID);
|
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(WORKSPACEID);
|
||||||
|
|
||||||
|
if (!PWORKSPACE) {
|
||||||
|
Debug::log(ERR, "moveWorkspaceToMonitor workspace doesn't exist!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
g_pCompositor->moveWorkspaceToMonitor(PWORKSPACE, PMONITOR);
|
g_pCompositor->moveWorkspaceToMonitor(PWORKSPACE, PMONITOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user