From 68a36b3b67ec82cdd3f77e88e40d1043cbab5000 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 19 Sep 2018 18:23:50 -0400 Subject: New upstream version 2.1.2+dfsg --- src/lib/platform/XWindowsScreen.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/platform/XWindowsScreen.h') diff --git a/src/lib/platform/XWindowsScreen.h b/src/lib/platform/XWindowsScreen.h index 35f9368..a2e3495 100644 --- a/src/lib/platform/XWindowsScreen.h +++ b/src/lib/platform/XWindowsScreen.h @@ -136,6 +136,10 @@ private: void onMouseRelease(const XButtonEvent&); void onMouseMove(const XMotionEvent&); + // Returns the number of scroll events needed after the current delta has + // been taken into account + int accumulateMouseScroll(SInt32 yDelta) const; + bool detectXI2(); #ifdef HAVE_XI2 void selectXIRawMotion(); @@ -172,8 +176,15 @@ private: // true if screen is being used as a primary screen, false otherwise bool m_isPrimary; + + // The size of a smallest supported scroll event, in points int m_mouseScrollDelta; + // Accumulates scrolls of less than m_mouseScrollDelta across multiple + // scroll events. We dispatch a scroll event whenever the accumulated scroll + // becomes larger than m_mouseScrollDelta + mutable int m_accumulatedScroll; + Display* m_display; Window m_root; Window m_window; -- cgit v1.2.3