mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 13:41:59 -07:00
Fix crash from moving current workspace to nonexistent (null) monitor.
This commit is contained in:
@@ -1011,6 +1011,9 @@ void CKeybindManager::moveCurrentWorkspaceToMonitor(std::string args) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PMONITOR)
|
||||
return;
|
||||
|
||||
// get the current workspace
|
||||
const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastMonitor->activeWorkspace);
|
||||
|
||||
|
Reference in New Issue
Block a user