mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 19:38:01 +02:00
algo/scrolling: fix rare crash
This commit is contained in:
parent
58017aa140
commit
c0fbf3342b
1 changed files with 1 additions and 1 deletions
|
|
@ -1496,7 +1496,7 @@ CBox CScrollingAlgorithm::usableArea() {
|
|||
CBox box = m_parent->space()->workArea();
|
||||
|
||||
// doesn't matter, this happens when this algo is about to be destroyed
|
||||
if (!m_parent->space()->workspace())
|
||||
if (!m_parent->space()->workspace() || !m_parent->space()->workspace()->m_monitor)
|
||||
return box;
|
||||
|
||||
box.translate(-m_parent->space()->workspace()->m_monitor->m_position);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue