Commit: patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled

1 view
Skip to first unread message

Christian Brabandt

unread,
Jun 16, 2026, 4:00:15 PM (2 days ago) Jun 16
to vim...@googlegroups.com
patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled

Commit: https://github.com/vim/vim/commit/b64b536ee0c0831c1fa5b1e95c43499ee4229b80
Author: Christoffer Aasted <dez...@gmail.com>
Date: Tue Jun 16 19:44:56 2026 +0000

patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled

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 <dez...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/gui.c b/src/gui.c
index 406d80425..2b4deee9f 100644
--- 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
}

diff --git a/src/version.c b/src/version.c
index 96dd5ff8f..b548ef9c9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 660,
/**/
659,
/**/
Reply all
Reply to author
Forward
0 new messages