mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 07:50:03 +01:00
renderer: avoid crash on arrangeLayers for an empty mon
This commit is contained in:
parent
7797deb935
commit
b8bb5e9bde
1 changed files with 1 additions and 1 deletions
|
|
@ -1885,7 +1885,7 @@ void CHyprRenderer::arrangeLayerArray(PHLMONITOR pMonitor, const std::vector<PHL
|
||||||
void CHyprRenderer::arrangeLayersForMonitor(const MONITORID& monitor) {
|
void CHyprRenderer::arrangeLayersForMonitor(const MONITORID& monitor) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(monitor);
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(monitor);
|
||||||
|
|
||||||
if (!PMONITOR)
|
if (!PMONITOR || PMONITOR->m_size.x <= 0 || PMONITOR->m_size.y <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Reset the reserved
|
// Reset the reserved
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue