3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-10-30 03:41:16 +00:00

output: update state even if no owner exists (#8044)

This commit is contained in:
trianta 2024-10-09 04:24:05 -05:00 committed by Vaxry
parent ad46257cce
commit 8405aa111d

View File

@ -47,7 +47,7 @@ SP<CWlOutput> CWLOutputResource::getResource() {
}
void CWLOutputResource::updateState() {
if (!monitor || !owner || owner->defunct)
if (!monitor || (owner && owner->defunct))
return;
if (resource->version() >= 2)