patch 9.2.0660: Dragging the scrollbar does not trigger WinScrolled

Commit: 
https://github.com/vim/vim/commit/b64b536ee0c0831c1fa5b1e95c43499ee4229b80
Author: Christoffer Aasted <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wZZx6-0011Ia-Mp%40256bit.org.

Raspunde prin e-mail lui