]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0731: GTK4 GUI scrollbar size not updated when restoring a session v9.2.0731
authorFoxe Chen <chen.foxe@gmail.com>
Fri, 26 Jun 2026 20:09:48 +0000 (20:09 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 26 Jun 2026 20:09:48 +0000 (20:09 +0000)
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.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_gtk4_f.c
src/version.c

index 29c17aa6d5b292f4e333197b788ad9c3bfaf982a..56949d9971abb2578ecdbb6578cfcc993514b1e8 100644 (file)
@@ -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);
 }
 
index 782667cc230f297413aa09a71106e2216096bc97..362b50a9d7d7f3ddae5d54a08ef489410b9deba9 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    731,
 /**/
     730,
 /**/