mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 01:05:58 +01:00
compositor: check for pworkspace validity in setActiveMonitor
This commit is contained in:
parent
94aeb06d6b
commit
c4283abb9f
1 changed files with 1 additions and 1 deletions
|
@ -2616,7 +2616,7 @@ void CCompositor::setActiveMonitor(CMonitor* pMonitor) {
|
||||||
|
|
||||||
const auto PWORKSPACE = getWorkspaceByID(pMonitor->activeWorkspace);
|
const auto PWORKSPACE = getWorkspaceByID(pMonitor->activeWorkspace);
|
||||||
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"focusedmon", pMonitor->szName + "," + PWORKSPACE->m_szName});
|
g_pEventManager->postEvent(SHyprIPCEvent{"focusedmon", pMonitor->szName + "," + (PWORKSPACE ? PWORKSPACE->m_szName : "?")});
|
||||||
EMIT_HOOK_EVENT("focusedMon", pMonitor);
|
EMIT_HOOK_EVENT("focusedMon", pMonitor);
|
||||||
m_pLastMonitor = pMonitor;
|
m_pLastMonitor = pMonitor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue