renderer: fix mouse motion in VRR (#12665)
This commit is contained in:
parent
4330b49a84
commit
cbeb6984e7
12 changed files with 63 additions and 105 deletions
|
|
@ -1043,8 +1043,10 @@ bool CMonitor::shouldSkipScheduleFrameOnMouseEvent() {
|
|||
static auto PMINRR = CConfigValue<Hyprlang::INT>("cursor:min_refresh_rate");
|
||||
|
||||
// skip scheduling extra frames for fullsreen apps with vrr
|
||||
const auto FS_WINDOW = getFullscreenWindow();
|
||||
const bool shouldSkip = FS_WINDOW && (*PNOBREAK == 1 || (*PNOBREAK == 2 && FS_WINDOW->getContentType() == CONTENT_TYPE_GAME)) && m_output->state->state().adaptiveSync;
|
||||
const auto FS_WINDOW = getFullscreenWindow();
|
||||
const bool shouldRenderCursor = g_pHyprRenderer->shouldRenderCursor();
|
||||
const bool noBreak = FS_WINDOW && (*PNOBREAK == 1 || (*PNOBREAK == 2 && FS_WINDOW->getContentType() == CONTENT_TYPE_GAME));
|
||||
const bool shouldSkip = (!shouldRenderCursor || noBreak) && m_output->state->state().adaptiveSync;
|
||||
|
||||
// keep requested minimum refresh rate
|
||||
if (shouldSkip && *PMINRR && m_lastPresentationTimer.getMillis() > 1000.0f / *PMINRR) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue