]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2142: MS-Windows: mouse scroll events not handled for popups v9.1.2142
authorMao-Yining <mao.yining@outlook.com>
Mon, 9 Feb 2026 18:49:48 +0000 (18:49 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Feb 2026 18:49:48 +0000 (18:49 +0000)
Problem:  MS-Windows: mouse scroll events not handled for popups
Solution: Do not return early (Mao-Yining)

Ensure mouse wheel events on popup windows are properly processed by
sending the corresponding key messages. Previously, early returns
prevented normal event flow, causing popup windows to ignore scroll
input.

fixes:  #19353
closes: #19369

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_w32.c
src/os_win32.c
src/version.c

index 59f2880797afe7ed147bd38c8f7daac7fa88d78b..3c5178067a10d95b3e69a9aa324dfeef90f02ad6 100644 (file)
@@ -4742,7 +4742,6 @@ _OnMouseWheel(HWND hwnd UNUSED, WPARAM wParam, LPARAM lParam, int horizontal)
        update_screen(0);
        setcursor();
        out_flush();
-       return;
     }
 #endif
 
index 9526a6ae92aaed53e648a0cd825e69533ba5b01e..a3d66c4b9c1eda85d3ccde815970fa129b67122f 100644 (file)
@@ -1507,7 +1507,6 @@ decode_mouse_wheel(MOUSE_EVENT_RECORD *pmer)
        update_screen(0);
        setcursor();
        out_flush();
-       return;
     }
 # endif
     mouse_col = g_xMouse;
index 5f437f42d6532804bd29059d78f1394eeaa9c5cf..6a6eaecb92c61c461e8abd91c50e3ec7286b5b90 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2142,
 /**/
     2141,
 /**/