mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 00:09:49 +01:00
fix crash in moveWorkspaceToMonitor
This commit is contained in:
parent
3e28a8b690
commit
0f8712ed64
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue