mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
output: minor tearing fixes
This commit is contained in:
@@ -1193,6 +1193,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||
shouldTear = true;
|
||||
}
|
||||
|
||||
pMonitor->tearingState.activelyTearing = shouldTear;
|
||||
|
||||
if (!*PNODIRECTSCANOUT && !shouldTear) {
|
||||
if (pMonitor->attemptDirectScanout()) {
|
||||
return;
|
||||
@@ -1202,11 +1204,6 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||
}
|
||||
}
|
||||
|
||||
if (pMonitor->tearingState.activelyTearing != shouldTear) {
|
||||
// change of state
|
||||
pMonitor->tearingState.activelyTearing = shouldTear;
|
||||
}
|
||||
|
||||
EMIT_HOOK_EVENT("preRender", pMonitor);
|
||||
|
||||
timespec now;
|
||||
|
Reference in New Issue
Block a user