diff options
author | Vaxry <[email protected]> | 2024-11-06 14:02:39 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-11-06 14:02:44 +0000 |
commit | 97a309b7844aea82b200139febc99998e7f06402 (patch) | |
tree | c1a2e3aec60269a04dad4ecd26cf84e457089e69 /src/desktop | |
parent | 3bf6f78dad5f78dd8f4f519ceaa5a98671c90b14 (diff) | |
download | Hyprland-97a309b7844aea82b200139febc99998e7f06402.tar.gz Hyprland-97a309b7844aea82b200139febc99998e7f06402.zip |
layershell: check if workspace is valid in onMap
ref #8296
Diffstat (limited to 'src/desktop')
-rw-r--r-- | src/desktop/LayerSurface.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index f073da82..eb3cdfd2 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -175,8 +175,7 @@ void CLayerSurface::onMap() { CBox geomFixed = {geometry.x + PMONITOR->vecPosition.x, geometry.y + PMONITOR->vecPosition.y, geometry.width, geometry.height}; g_pHyprRenderer->damageBox(&geomFixed); - const auto WORKSPACE = PMONITOR->activeWorkspace; - const bool FULLSCREEN = WORKSPACE->m_bHasFullscreenWindow && WORKSPACE->m_efFullscreenMode == FSMODE_FULLSCREEN; + const bool FULLSCREEN = PMONITOR->activeWorkspace && PMONITOR->activeWorkspace->m_bHasFullscreenWindow && PMONITOR->activeWorkspace->m_efFullscreenMode == FSMODE_FULLSCREEN; startAnimation(!(layer == ZWLR_LAYER_SHELL_V1_LAYER_TOP && FULLSCREEN && !GRABSFOCUS)); readyToDelete = false; |