mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-28 10:23:48 -07:00
compositor: guard null ws in updating fade
This commit is contained in:
@@ -2217,6 +2217,9 @@ bool CCompositor::workspaceIDOutOfBounds(const WORKSPACEID& id) {
|
|||||||
|
|
||||||
void CCompositor::updateFullscreenFadeOnWorkspace(PHLWORKSPACE pWorkspace) {
|
void CCompositor::updateFullscreenFadeOnWorkspace(PHLWORKSPACE pWorkspace) {
|
||||||
|
|
||||||
|
if (!pWorkspace)
|
||||||
|
return;
|
||||||
|
|
||||||
const auto FULLSCREEN = pWorkspace->m_bHasFullscreenWindow;
|
const auto FULLSCREEN = pWorkspace->m_bHasFullscreenWindow;
|
||||||
|
|
||||||
for (auto const& w : g_pCompositor->m_vWindows) {
|
for (auto const& w : g_pCompositor->m_vWindows) {
|
||||||
|
Reference in New Issue
Block a user