patch 9.2.0731: GTK4 GUI scrollbar size not updated when restoring a session
Commit:
https://github.com/vim/vim/commit/add09091a25603ec536a95c9ba7375e862bb1405
Author: Foxe Chen <
chen...@gmail.com>
Date: Fri Jun 26 20:09:48 2026 +0000
patch 9.2.0731: GTK4 GUI scrollbar size not updated when restoring a session
Problem: GTK4 GUI scrollbar size not updated when restoring a session
Solution: In vim_form_move_resize() queue a resize for a hidden widget
(Foxe Chen).
closes: #20633
Signed-off-by: Foxe Chen <
chen...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/gui_gtk4_f.c b/src/gui_gtk4_f.c
index 29c17aa6d..56949d997 100644
--- a/src/gui_gtk4_f.c
+++ b/src/gui_gtk4_f.c
@@ -174,6 +174,8 @@ vim_form_move_resize(
gint h)
{
gtk_widget_set_size_request(widget, w, h);
+ if (!gtk_widget_get_visible(widget))
+ gtk_widget_queue_resize(widget);
vim_form_move(self, widget, x, y);
}
diff --git a/src/version.c b/src/version.c
index 782667cc2..362b50a9d 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 */
+/**/
+ 731,
/**/
730,
/**/