mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 05:18:21 +02:00
workspace: fix missing null access guard (#14119)
This commit is contained in:
parent
d4dd299d80
commit
300cdb7c32
1 changed files with 3 additions and 0 deletions
|
|
@ -403,6 +403,9 @@ bool CWorkspace::isVisible() {
|
|||
|
||||
bool CWorkspace::isVisibleNotCovered() {
|
||||
const auto PMONITOR = m_monitor.lock();
|
||||
if (!PMONITOR)
|
||||
return false;
|
||||
|
||||
if (PMONITOR->m_activeSpecialWorkspace)
|
||||
return PMONITOR->m_activeSpecialWorkspace->m_id == m_id;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue