Mercurial > vim
comparison src/gui.c @ 16184:acbb1a815e7c v8.1.1097
patch 8.1.1097: Motif build fails
commit https://github.com/vim/vim/commit/4fc8e2f8bb3eb42df0f72cfcc1f8f8e567e7ce4f
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 22:30:04 +0100 |
parents | 0f3c50a68637 |
children | 7ae2396cef62 |
comparison
equal
deleted
inserted
replaced
16183:439843cdff96 | 16184:acbb1a815e7c |
---|---|
676 gui_init_which_components(NULL); | 676 gui_init_which_components(NULL); |
677 | 677 |
678 /* All components of the GUI have been created now */ | 678 /* All components of the GUI have been created now */ |
679 gui.shell_created = TRUE; | 679 gui.shell_created = TRUE; |
680 | 680 |
681 #ifndef FEAT_GUI_GTK | 681 #ifdef FEAT_GUI_MSWIN |
682 // Set the shell size, adjusted for the screen size. For GTK this only | 682 // Set the shell size, adjusted for the screen size. For GTK this only |
683 // works after the shell has been opened, thus it is further down. | 683 // works after the shell has been opened, thus it is further down. |
684 // If the window is already maximized (e.g. when --windowid is passed in), | 684 // If the window is already maximized (e.g. when --windowid is passed in), |
685 // we want to use the system-provided dimensions by passing FALSE to | 685 // we want to use the system-provided dimensions by passing FALSE to |
686 // mustset. Otherwise, we want to initialize with the default rows/columns. | 686 // mustset. Otherwise, we want to initialize with the default rows/columns. |
687 if (gui_mch_maximized()) | 687 if (gui_mch_maximized()) |
688 gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH); | 688 gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH); |
689 else | 689 else |
690 gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH); | 690 gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH); |
691 #else | |
692 # ifndef FEAT_GUI_GTK | |
693 gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH); | |
694 # endif | |
691 #endif | 695 #endif |
692 #if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU) | 696 #if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU) |
693 /* Need to set the size of the menubar after all the menus have been | 697 /* Need to set the size of the menubar after all the menus have been |
694 * created. */ | 698 * created. */ |
695 gui_mch_compute_menu_height((Widget)0); | 699 gui_mch_compute_menu_height((Widget)0); |