Skip to content

Commit

Permalink
Revert "skip extra frames for hw cursors"
Browse files Browse the repository at this point in the history
This reverts commit 93e4629.
  • Loading branch information
UjinT34 committed Jul 21, 2024
1 parent 93e4629 commit 7dc595e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/managers/AnimationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void CAnimationManager::tick() {

// manually schedule a frame
if (PMONITOR)
g_pCompositor->scheduleFrameForMonitor(PMONITOR, Aquamarine::IOutput::AQ_SCHEDULE_ANIMATION);
g_pCompositor->scheduleFrameForMonitor(PMONITOR, Aquamarine::IOutput::AQ_SCHEDULE_CURSOR_SHAPE);
}

// do it here, because if this alters the animation vars deque we would be in trouble above.
Expand Down
7 changes: 3 additions & 4 deletions src/managers/PointerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void CPointerManager::onCursorMoved() {
continue;

const auto CURSORPOS = getCursorPosForMonitor(m);
m->output->moveCursor(CURSORPOS, m->shouldSkipScheduleFrameOnMouseEvent());
m->output->moveCursor(CURSORPOS);
}
}

Expand All @@ -302,7 +302,7 @@ bool CPointerManager::attemptHardwareCursor(SP<CPointerManager::SMonitorPointerS
return false;

const auto CURSORPOS = getCursorPosForMonitor(state->monitor.lock());
state->monitor->output->moveCursor(CURSORPOS, state->monitor->shouldSkipScheduleFrameOnMouseEvent());
state->monitor->output->moveCursor(CURSORPOS);

auto texture = getCurrentCursorTexture();

Expand Down Expand Up @@ -345,8 +345,7 @@ bool CPointerManager::setHWCursorBuffer(SP<SMonitorPointerState> state, SP<Aquam

state->cursorFrontBuffer = buf;

if (!state->monitor->shouldSkipScheduleFrameOnMouseEvent())
g_pCompositor->scheduleFrameForMonitor(state->monitor.get(), Aquamarine::IOutput::AQ_SCHEDULE_CURSOR_SHAPE);
g_pCompositor->scheduleFrameForMonitor(state->monitor.get(), Aquamarine::IOutput::AQ_SCHEDULE_CURSOR_SHAPE);

return true;
}
Expand Down

0 comments on commit 7dc595e

Please sign in to comment.