diff options
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index eec01a7d..87429874 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -892,8 +892,9 @@ void Events::listener_commitWindow(void* owner, void* data) { } // tearing: if solitary, redraw it. This still might be a single surface window - if (PMONITOR && PMONITOR->m_solitaryClient.lock() == PWINDOW && PWINDOW->canBeTorn() && PMONITOR->m_tearingState.canTear && PWINDOW->m_wlSurface->resource()->current.texture) { - CRegion damageBox{PWINDOW->m_wlSurface->resource()->current.accumulateBufferDamage()}; + if (PMONITOR && PMONITOR->m_solitaryClient.lock() == PWINDOW && PWINDOW->canBeTorn() && PMONITOR->m_tearingState.canTear && + PWINDOW->m_wlSurface->resource()->m_current.texture) { + CRegion damageBox{PWINDOW->m_wlSurface->resource()->m_current.accumulateBufferDamage()}; if (!damageBox.empty()) { if (PMONITOR->m_tearingState.busy) { |
