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
|
|
@ -55,14 +55,11 @@ class CPointerManager {
|
|||
// this is needed e.g. during screensharing where
|
||||
// the software cursors aren't locked during the cursor move, but they
|
||||
// are rendered later.
|
||||
void damageCursor(PHLMONITOR pMonitor);
|
||||
void damageCursor(PHLMONITOR pMonitor, bool skipFrameSchedule = false);
|
||||
|
||||
//
|
||||
Vector2D position();
|
||||
Vector2D cursorSizeLogical();
|
||||
void storeMovement(uint64_t time, const Vector2D& delta, const Vector2D& deltaUnaccel);
|
||||
void setStoredMovement(uint64_t time, const Vector2D& delta, const Vector2D& deltaUnaccel);
|
||||
void sendStoredMovement();
|
||||
|
||||
void recheckEnteredOutputs();
|
||||
|
||||
|
|
@ -95,7 +92,6 @@ class CPointerManager {
|
|||
CHyprSignalListener motionAbsolute;
|
||||
CHyprSignalListener button;
|
||||
CHyprSignalListener axis;
|
||||
CHyprSignalListener frame;
|
||||
|
||||
CHyprSignalListener swipeBegin;
|
||||
CHyprSignalListener swipeEnd;
|
||||
|
|
@ -154,10 +150,6 @@ class CPointerManager {
|
|||
|
||||
Vector2D m_pointerPos = {0, 0};
|
||||
|
||||
uint64_t m_storedTime = 0;
|
||||
Vector2D m_storedDelta = {0, 0};
|
||||
Vector2D m_storedUnaccel = {0, 0};
|
||||
|
||||
struct SMonitorPointerState {
|
||||
SMonitorPointerState(const PHLMONITOR& m) : monitor(m) {}
|
||||
~SMonitorPointerState() = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue