To: vim_dev@googlegroups.com Subject: Patch 9.0.1563 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1563 Problem: GTK3: window manager resize hints are incomplete. Solution: Use NULL for second argument of gtk_window_set_geometry_hints(). (Kenny Stauffer, closes #11055) Files: src/gui_gtk_x11.c *** ../vim-9.0.1562/src/gui_gtk_x11.c 2023-04-28 16:36:47.408401542 +0100 --- src/gui_gtk_x11.c 2023-05-16 22:15:21.831370523 +0100 *************** *** 3121,3128 **** |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, &geometry, geometry_mask); old_width = width; old_height = height; --- 3121,3130 ---- |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+. 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; *** ../vim-9.0.1562/src/version.c 2023-05-16 20:10:58.542664693 +0100 --- src/version.c 2023-05-16 22:12:39.867134243 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1563, /**/ -- Those who live by the sword get shot by those who don't. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///