From 0d3866d06e31aa12c9cb72126ef591c07f358c81 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 19 May 2024 20:07:46 +0100 Subject: [PATCH] wayland_backend: Make naming in Wayland_Pointer_Frame match conventions --- src/wayland_backend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wayland_backend.cpp b/src/wayland_backend.cpp index 8fe4a5586..c5b33cfeb 100644 --- a/src/wayland_backend.cpp +++ b/src/wayland_backend.cpp @@ -2309,8 +2309,8 @@ namespace gamescope void CWaylandInputThread::Wayland_Pointer_Frame( wl_pointer *pPointer ) { defer( m_uAxisSource = WL_POINTER_AXIS_SOURCE_WHEEL ); - double x = m_flScrollAccum[0]; - double y = m_flScrollAccum[1]; + double flX = m_flScrollAccum[0]; + double flY = m_flScrollAccum[1]; m_flScrollAccum[0] = 0.0; m_flScrollAccum[1] = 0.0; @@ -2320,11 +2320,11 @@ namespace gamescope if ( m_uAxisSource != WL_POINTER_AXIS_SOURCE_WHEEL ) return; - if ( x == 0.0 && y == 0.0 ) + if ( flX == 0.0 && flY == 0.0 ) return; wlserver_lock(); - wlserver_mousewheel( x, y, ++m_uFakeTimestamp ); + wlserver_mousewheel( flX, flY, ++m_uFakeTimestamp ); wlserver_unlock(); }