mirror of
https://github.com/vale981/Hyprland
synced 2025-03-06 01:51:37 -05:00
master: guard monitor in recalc
This commit is contained in:
parent
9c9b74179c
commit
62e3953f5b
1 changed files with 5 additions and 1 deletions
|
@ -200,6 +200,10 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) {
|
|||
|
||||
void CHyprMasterLayout::recalculateMonitor(const int& monid) {
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(monid);
|
||||
|
||||
if (!PMONITOR)
|
||||
return;
|
||||
|
||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace);
|
||||
|
||||
if (!PWORKSPACE)
|
||||
|
|
Loading…
Add table
Reference in a new issue