# HG changeset patch # User Bram Moolenaar # Date 1553981404 -3600 # Node ID acbb1a815e7c98ba03f35ae65b4776f066c3d0e9 # Parent 439843cdff96aa3e3244ddd284aef61f6d99fbfc patch 8.1.1097: Motif build fails commit https://github.com/vim/vim/commit/4fc8e2f8bb3eb42df0f72cfcc1f8f8e567e7ce4f Author: Bram Moolenaar Date: Sat Mar 30 22:26:38 2019 +0100 patch 8.1.1097: Motif build fails Problem: Motif build fails. (Paul Jolly) Solution: Only use gui_mch_maximized() for MS-Windows. (closes https://github.com/vim/vim/issues/4194) diff --git a/src/gui.c b/src/gui.c --- a/src/gui.c +++ b/src/gui.c @@ -678,7 +678,7 @@ gui_init(void) /* All components of the GUI have been created now */ gui.shell_created = TRUE; -#ifndef FEAT_GUI_GTK +#ifdef FEAT_GUI_MSWIN // 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. // If the window is already maximized (e.g. when --windowid is passed in), @@ -688,6 +688,10 @@ gui_init(void) gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH); else gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH); +#else +# ifndef FEAT_GUI_GTK + gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH); +# endif #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 --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1097, +/**/ 1096, /**/ 1095,