From 4c7f546c60ad6a8fefd0765045b1fb7ad79d8544 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 16 Feb 2026 17:55:06 -0500 Subject: [PATCH] fix: XWindowScreen, do not send a scroll delta for 0 fixes: #9477 --- src/lib/platform/XWindowsScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/platform/XWindowsScreen.cpp b/src/lib/platform/XWindowsScreen.cpp index d8c7bb94d..df0c49d9f 100644 --- a/src/lib/platform/XWindowsScreen.cpp +++ b/src/lib/platform/XWindowsScreen.cpp @@ -815,7 +815,7 @@ void XWindowsScreen::fakeMouseWheel(ScrollDelta delta) const } // send as many clicks as necessary - while (axisDelta >= 0) { + while (axisDelta > 0) { XTestFakeButtonEvent(m_display, button, True, CurrentTime); XTestFakeButtonEvent(m_display, button, False, CurrentTime); axisDelta -= s_scrollDelta;