Alexey I. Froloff wrote:
gui_gtk.c:
3131 if ((pos_x + c_size.width) > (wP + xP))
3132 pos_x = xP + wP - c_size.width - 2;
3133 /* Assume 'guiheadroom' indicates the title bar height... */
3134 if ((pos_y + c_size.height + p_ghr / 2) > (hP + yP))
3135
3136 gtk_widget_set_uposition(child, pos_x, pos_y);
3137 }
gtk_widget_set_uposition() is called only if condition in line
3134 is true.
P.S. Can anyone confirm, that running
gvim-gtk2 -u NONE -U NONE --cmd 'set lines=9999' --cmd 'set guifont=Bolkhov\ VGA\ 10'
_SOMETIMES_ does not resize gvim window? I had to run this
command ~40 times before I got that. They say, it can be
reproduced without setting 'guifont' (BTW, value doesn't matter),
but I can't catch it.
- ":set" with several options acts from left to right; if there is an
error, the rest isn't executed.
- ":set lines=99999" set 'lines' to the maximum number of lines possible
with the current 'guifont'. In this case, with the default font which
was there before setting 'guifont' to "Bolkhov VGA 10". Therefore
setting 'lines' and/or 'columns' should be done after setting 'guifont',
not before. IIUC (but I may have misunderstood) setting these with --cmd
(i.e., before processing the vimrc) doesn't change anything since (IIUC)
when about to start the GUI, 'lines' 'columns' ":winpos" 'guifont' etc.
are postponed until the GUI is started; I supposed they are still run in
the order the commands were given.
- I can't test this exact way, as "Bolkhow VGA" is not available on this
system. (I use "B&H LucidaTypewriter 10" for Latin and "FZFangSong 18"
for CJK. I have "set lines=99999 columns=99999" in my vimrc (bracketed
by 'if has("gui_running")' and after setting 'guifont') and my gvim
(GTK2/Gnome Huge version) always starts maximized.
Conclusion: Works for me.
Best regards,
Tony.