From: Christoffer Aasted Date: Tue, 16 Jun 2026 19:44:56 +0000 (+0000) Subject: patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled X-Git-Tag: v9.2.0660^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b64b536ee0c0831c1fa5b1e95c43499ee4229b80;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/gui.c b/src/gui.c index 406d804252..2b4deee9f6 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 96dd5ff8f4..b548ef9c9f 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, /**/