Commit: patch 9.2.1118: GTK4: draw area size not updated

4 views
Skip to first unread message

Christian Brabandt

unread,
Sep 17, 2026, 4:15:15 PM (2 days ago) Sep 17
to vim...@googlegroups.com
patch 9.2.1118: GTK4: draw area size not updated

Commit: https://github.com/vim/vim/commit/c67373ba06d0583a153899a429c32dc3d8b45837
Author: Foxe Chen <chen...@gmail.com>
Date: Thu Sep 17 20:09:41 2026 +0000

patch 9.2.1118: GTK4: draw area size not updated

Problem: GTK4: draw area size not updated
Solution: Do not reset Rows/Columns to previous values
(Foxe Chen).

closes: #21335

Signed-off-by: Foxe Chen <chen...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/gui_gtk4.c b/src/gui_gtk4.c
index 1f6923e84..8a2f24329 100644
--- a/src/gui_gtk4.c
+++ b/src/gui_gtk4.c
@@ -735,7 +735,6 @@ gui_mch_open(void)
guicolor_T bg_pixel = INVALCOLOR;
guint pixel_width;
guint pixel_height;
- long columns = Columns, rows = Rows;

if (gui.geom != NULL)
{
@@ -745,12 +744,12 @@ gui_mch_open(void)
mask = vim_parse_geometry((char *)gui.geom, &w, &h);

if (mask & WidthValue)
- columns = Columns = w;
+ Columns = w;
if (mask & HeightValue)
{
if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
p_window = h - 1;
- rows = Rows = h;
+ Rows = h;
}
limit_screen_size();

@@ -808,8 +807,6 @@ gui_mch_open(void)
// Undo the 80x24 clamp above, gui_init() asks for this size next. Drain
// the pending allocation before that, or gui_resize_shell() overwrites it.
gui_mch_update();
- Columns = columns;
- Rows = rows;

// Make sure the drawing area gets keyboard focus.
gtk_widget_grab_focus(gui.drawarea);
diff --git a/src/version.c b/src/version.c
index 5a863b280..a5a3af974 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =

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