mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-25 14:50:04 +01:00
Fix relative mouse motion on Xwayland
This commit is contained in:
parent
58f1c43708
commit
5dce15eb8c
3 changed files with 3 additions and 8 deletions
|
|
@ -1100,8 +1100,3 @@ void CPointerManager::damageCursor(PHLMONITOR pMonitor) {
|
|||
Vector2D CPointerManager::cursorSizeLogical() {
|
||||
return m_currentCursorImage.size / m_currentCursorImage.scale;
|
||||
}
|
||||
|
||||
void CPointerManager::sendMovement(uint64_t time, const Vector2D& delta, const Vector2D& deltaUnaccel) {
|
||||
PROTO::relativePointer->sendRelativeMotion(time * 1000, delta, deltaUnaccel);
|
||||
g_pSeatManager->sendPointerFrame();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ class CPointerManager {
|
|||
//
|
||||
Vector2D position();
|
||||
Vector2D cursorSizeLogical();
|
||||
void sendMovement(uint64_t time, const Vector2D& delta, const Vector2D& deltaUnaccel);
|
||||
|
||||
void recheckEnteredOutputs();
|
||||
|
||||
|
|
|
|||
|
|
@ -131,11 +131,10 @@ void CInputManager::onMouseMoved(IPointer::SMotionEvent e) {
|
|||
|
||||
const auto DELTA = *PNOACCEL == 1 ? unaccel : delta;
|
||||
|
||||
g_pPointerManager->sendMovement(e.timeMs, DELTA, unaccel);
|
||||
|
||||
if (e.mouse)
|
||||
recheckMouseWarpOnMouseInput();
|
||||
|
||||
PROTO::relativePointer->sendRelativeMotion(sc<uint64_t>(e.timeMs) * 1000, delta, unaccel);
|
||||
g_pPointerManager->move(DELTA);
|
||||
|
||||
mouseMoveUnified(e.timeMs, false, e.mouse);
|
||||
|
|
@ -146,6 +145,8 @@ void CInputManager::onMouseMoved(IPointer::SMotionEvent e) {
|
|||
|
||||
if (e.mouse)
|
||||
m_lastMousePos = getMouseCoordsInternal();
|
||||
|
||||
g_pSeatManager->sendPointerFrame();
|
||||
}
|
||||
|
||||
void CInputManager::onMouseWarp(IPointer::SMotionAbsoluteEvent e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue