Skip to content

Commit

Permalink
wayland_backend: Make naming in Wayland_Pointer_Frame match conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed May 19, 2024
1 parent d54afb7 commit 0d3866d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wayland_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
}

Expand Down

0 comments on commit 0d3866d

Please sign in to comment.