output: minor tearing fixes
This commit is contained in:
parent
1c221240d0
commit
cc7c117fe7
2 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue