Alexey 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.

This does look strange.  I wonder who put it this way?
This is only for positioning dialogs, it's not related to your problem
of the Vim window having the wrong size.

> 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.

There is some problem with event ordering in GTK related to resizing.
I'm not sure if there is someone who can fix this.

-- 
It is illegal for a driver to be blindfolded while operating a vehicle.
                [real standing law in Alabama, United States of America]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to