comparison src/gui.c @ 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 f2972ff144ab
children 29f3d59bb6f0
comparison
equal deleted inserted replaced
15232:ebb62b5f7f21 15233:5e7515dbf871
685 685
686 /* All components of the GUI have been created now */ 686 /* All components of the GUI have been created now */
687 gui.shell_created = TRUE; 687 gui.shell_created = TRUE;
688 688
689 #ifndef FEAT_GUI_GTK 689 #ifndef FEAT_GUI_GTK
690 /* Set the shell size, adjusted for the screen size. For GTK this only 690 // Set the shell size, adjusted for the screen size. For GTK this only
691 * works after the shell has been opened, thus it is further down. */ 691 // works after the shell has been opened, thus it is further down.
692 gui_set_shellsize(TRUE, TRUE, RESIZE_BOTH); 692 // For MS-Windows pass FALSE for "mustset" to make --windowid work.
693 gui_set_shellsize(FALSE, TRUE, RESIZE_BOTH);
693 #endif 694 #endif
694 #if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU) 695 #if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
695 /* Need to set the size of the menubar after all the menus have been 696 /* Need to set the size of the menubar after all the menus have been
696 * created. */ 697 * created. */
697 gui_mch_compute_menu_height((Widget)0); 698 gui_mch_compute_menu_height((Widget)0);