Skip to content

Commit 4fc8e2f

Browse files
committed
patch 8.1.1097: Motif build fails
Problem: Motif build fails. (Paul Jolly) Solution: Only use gui_mch_maximized() for MS-Windows. (closes #4194)
1 parent b70a47b commit 4fc8e2f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/gui.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ gui_init(void)
678678
/* All components of the GUI have been created now */
679679
gui.shell_created = TRUE;
680680

681-
#ifndef FEAT_GUI_GTK
681+
#ifdef FEAT_GUI_MSWIN
682682
// Set the shell size, adjusted for the screen size. For GTK this only
683683
// works after the shell has been opened, thus it is further down.
684684
// If the window is already maximized (e.g. when --windowid is passed in),
@@ -688,6 +688,10 @@ gui_init(void)
688688
gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH);
689689
else
690690
gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH);
691+
#else
692+
# ifndef FEAT_GUI_GTK
693+
gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH);
694+
# endif
691695
#endif
692696
#if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
693697
/* Need to set the size of the menubar after all the menus have been

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1097,
774776
/**/
775777
1096,
776778
/**/

0 commit comments

Comments
 (0)