]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled v9.2.0660
authorChristoffer Aasted <dezzadk@gmail.com>
Tue, 16 Jun 2026 19:44:56 +0000 (19:44 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 16 Jun 2026 19:44:56 +0000 (19:44 +0000)
Problem:  Dragging the scrollbar does not trigger WinScrolled
Solution: Refocus the GUI which triggers WinScrolled autocmd
          (Christoffer Aasted).

closes: #20517

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui.c
src/version.c

index 406d804252d991ba0a7dd21f11583515510a9db6..2b4deee9f6e88d87903992613d9faff54f11afc0 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -4141,6 +4141,8 @@ gui_drag_scrollbar(scrollbar_T *sb, long value, int still_dragging)
        // Keep the "dragged_wp" value until after the scrolling, for when the
        // mouse button is released.  GTK2 doesn't send the button-up event.
        gui.dragged_wp = NULL;
+       // WinScrolled event
+       gui_focus_change(TRUE);
 #endif
     }
 
index 96dd5ff8f4d101d929076acce23ea3ded6d4d66f..b548ef9c9f5a9a3749e504bd7b0ff40c5e90fdd6 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    660,
 /**/
     659,
 /**/