]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1563: GTK3: window manager resize hints are incomplete v9.0.1563
authorBram Moolenaar <Bram@vim.org>
Tue, 16 May 2023 21:15:51 +0000 (22:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 16 May 2023 21:15:51 +0000 (22:15 +0100)
Problem:    GTK3: window manager resize hints are incomplete.
Solution:   Use NULL for second argument of gtk_window_set_geometry_hints().
            (Kenny Stauffer closes #11055)

src/gui_gtk_x11.c
src/version.c

index fc3d08b42cd9f71c9a603f229f353c63dfcf3d72..1f8b2ebcc76afd255a27a358dafc05776ca3469b 100644 (file)
@@ -3121,8 +3121,10 @@ update_window_manager_hints(int force_width, int force_height)
                               |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;
index 80244d6fe26f9157895a7a4e683d5bc77d397cba..0e1e326168e0e99390949b872ab329fcdb536740 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1563,
 /**/
     1562,
 /**/