diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-05-16 22:15:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-16 22:15:51 +0100 |
commit | c0da540466c89e388e7a15a12bab2f9fc42d9671 (patch) | |
tree | a396fca741f1240901644ba1bca6924b9e561b1a /src/gui_gtk_x11.c | |
parent | 7268e539968de227d49ffc66adb79e558502743e (diff) | |
download | vim-git-master.tar.gz |
Problem: GTK3: window manager resize hints are incomplete.
Solution: Use NULL for second argument of gtk_window_set_geometry_hints().
(Kenny Stauffer closes #11055)
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index fc3d08b42..1f8b2ebcc 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -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; |