mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-27 03:29:48 +01:00
parent
a9d53a2252
commit
a357fa3e0a
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ void Events::listener_commitWindow(void* owner, void* data) {
|
|||
// tearing: if solitary, redraw it. This still might be a single surface window
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID);
|
||||
if (PMONITOR && PMONITOR->solitaryClient.lock() == PWINDOW && PWINDOW->canBeTorn() && PMONITOR->tearingState.canTear && PWINDOW->m_pWLSurface->resource()->current.buffer) {
|
||||
CRegion damageBox{PWINDOW->m_pWLSurface->resource()->current.bufferDamage};
|
||||
CRegion damageBox{PWINDOW->m_pWLSurface->resource()->accumulateCurrentBufferDamage()};
|
||||
|
||||
if (!damageBox.empty()) {
|
||||
if (PMONITOR->tearingState.busy) {
|
||||
|
|
Loading…
Reference in a new issue