Skip to content

Commit

Permalink
InputEmulation: Fix inputs getting delayed + mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Ashton committed May 14, 2024
1 parent 37577dc commit 95b6805
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InputEmulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ namespace gamescope
m_flScrollAccum[1] = 0.0;

if ( flScrollX == 0.0 && flScrollY == 0.0 )
return;
break;

wlserver_lock();
wlserver_mousewheel( flScrollX, flScrollY, ++s_uSequence );
Expand All @@ -213,6 +213,8 @@ namespace gamescope
}
break;
}

eis_event_unref( pEisEvent );
}
}
}
Expand Down

0 comments on commit 95b6805

Please sign in to comment.