changeset 32464:f2138180c6f0

patch 9.0.1563: GTK3: window manager resize hints are incomplete Commit: https://github.com/vim/vim/commit/c0da540466c89e388e7a15a12bab2f9fc42d9671 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 16 22:15:51 2023 +0100 patch 9.0.1563: GTK3: window manager resize hints are incomplete Problem: GTK3: window manager resize hints are incomplete. Solution: Use NULL for second argument of gtk_window_set_geometry_hints(). (Kenny Stauffer closes #11055)
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 May 2023 00:00:04 +0200
parents a8de0304a29f
children 83074077c0b1
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -3121,8 +3121,10 @@ update_window_manager_hints(int force_wi
 			       |GDK_HINT_MIN_SIZE;
 	// Using gui.formwin as geometry widget doesn't work as expected
 	// with GTK+ 2 -- dunno why.  Presumably all the resizing hacks
-	// in Vim confuse GTK+.
-	gtk_window_set_geometry_hints(GTK_WINDOW(gui.mainwin), gui.mainwin,
+	// in Vim confuse GTK+.  For GTK 3 the second argument should be NULL
+	// to make the width/height inc works, despite the docs saying
+	// something else.
+	gtk_window_set_geometry_hints(GTK_WINDOW(gui.mainwin), NULL,
 				      &geometry, geometry_mask);
 	old_width       = width;
 	old_height      = height;
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1563,
+/**/
     1562,
 /**/
     1561,