mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-29 19:03:48 -07:00
@@ -2076,7 +2076,8 @@ PHLMONITOR CCompositor::getMonitorFromString(const std::string& name) {
|
|||||||
|
|
||||||
void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMonitor, bool noWarpCursor) {
|
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)
|
if (pWorkspace->m_pMonitor == pMonitor)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user