mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 14:09:49 +01:00
parent
f69e72eca1
commit
2e6e0e9278
1 changed files with 2 additions and 1 deletions
|
@ -2076,7 +2076,8 @@ PHLMONITOR CCompositor::getMonitorFromString(const std::string& name) {
|
|||
|
||||
void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMonitor, bool noWarpCursor) {
|
||||
|
||||
// We trust the monitor to be correct.
|
||||
if (!pWorkspace || !pMonitor)
|
||||
return;
|
||||
|
||||
if (pWorkspace->m_pMonitor == pMonitor)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue