diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-03-03 20:59:18 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-03-03 20:59:18 +0000 |
| commit | dc4b082ee8748e70e0a6d6cbec000e660321e215 (patch) | |
| tree | d52cd9158302338779d47191e594f266d3e6300c /src/layout/algorithm/tiled | |
| parent | edf7098345b4498e937d25ace9d9b535c0eade34 (diff) | |
algo/scrolling: fix rare crash
Diffstat (limited to 'src/layout/algorithm/tiled')
| -rw-r--r-- | src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp index 0c3bb1cc..afba398f 100644 --- a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp +++ b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp @@ -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); |
