mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
core: fix null ref when resuming system (#9794)
* core: fix null ref when resuming system * e
This commit is contained in:
parent
10a335631e
commit
8aaffda969
@ -2154,11 +2154,13 @@ void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMo
|
|||||||
|
|
||||||
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with new {}", nextWorkspaceOnMonitorID);
|
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with new {}", nextWorkspaceOnMonitorID);
|
||||||
|
|
||||||
g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID);
|
if (POLDMON)
|
||||||
|
g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing {}", nextWorkspaceOnMonitorID);
|
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing {}", nextWorkspaceOnMonitorID);
|
||||||
POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true);
|
if (POLDMON)
|
||||||
|
POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// move the workspace
|
// move the workspace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user