summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-22 18:44:53 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-22 18:44:53 +0100
commit4814ccbdf0e99e2d33e1ac926c59f677f5c2afe2 (patch)
tree5b812bff6f81a0b9fd1d607114121d47ac618203
parent81df63537e281da38b45bc1806e2b4582e804242 (diff)
downloadvim-git-4814ccbdf0e99e2d33e1ac926c59f677f5c2afe2.tar.gz
patch 8.1.0626: MS-Windows: no resize to fit parent when using --windowidv8.1.0626
Problem: MS-Windows: no resize to fit parent when using --windowid. Solution: Pass FALSE for "mustset" in gui_set_shellsize(). (Agorgianitis Loukas, closes #3616)
-rw-r--r--src/gui.c7
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index 9160848c8..0b911b314 100644
--- 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
diff --git a/src/version.c b/src/version.c
index 594be524d..4d39dde9d 100644
--- 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,