changeset 15233:5e7515dbf871 v8.1.0626

patch 8.1.0626: MS-Windows: no resize to fit parent when using --windowid commit https://github.com/vim/vim/commit/4814ccbdf0e99e2d33e1ac926c59f677f5c2afe2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 22 18:44:53 2018 +0100 patch 8.1.0626: MS-Windows: no resize to fit parent when using --windowid Problem: MS-Windows: no resize to fit parent when using --windowid. Solution: Pass FALSE for "mustset" in gui_set_shellsize(). (Agorgianitis Loukas, closes #3616)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Dec 2018 18:45:05 +0100
parents ebb62b5f7f21
children ee63f4fe3d45
files src/gui.c src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui.c
+++ b/src/gui.c
@@ -687,9 +687,10 @@ gui_init(void)
     gui.shell_created = TRUE;
 
 #ifndef FEAT_GUI_GTK
-    /* Set the shell size, adjusted for the screen size.  For GTK this only
-     * works after the shell has been opened, thus it is further down. */
-    gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH);
+    // Set the shell size, adjusted for the screen size.  For GTK this only
+    // works after the shell has been opened, thus it is further down.
+    // For MS-Windows pass FALSE for "mustset" to make --windowid work.
+    gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH);
 #endif
 #if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
     /* Need to set the size of the menubar after all the menus have been
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    626,
+/**/
     625,
 /**/
     624,