mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 20:00:46 -08:00
(x_window): Delete duplicate computation.
Change type of reference argument from int to short.
This commit is contained in:
parent
51ce6acd24
commit
ec5c4af4d2
1 changed files with 1 additions and 7 deletions
|
|
@ -1927,21 +1927,15 @@ x_window (f, window_prompting, minibuffer_only)
|
|||
char *tem, shell_position[32];
|
||||
Arg al[2];
|
||||
int ac = 0;
|
||||
int ibw;
|
||||
int menubar_size
|
||||
= (f->display.x->menubar_widget
|
||||
? (f->display.x->menubar_widget->core.height
|
||||
+ f->display.x->menubar_widget->core.border_width)
|
||||
: 0);
|
||||
|
||||
XtVaGetValues (pane_widget,
|
||||
XtNinternalBorderWidth, &ibw,
|
||||
NULL);
|
||||
menubar_size += ibw;
|
||||
|
||||
if (FRAME_EXTERNAL_MENU_BAR (f))
|
||||
{
|
||||
int ibw;
|
||||
short ibw;
|
||||
XtVaGetValues (pane_widget, XtNinternalBorderWidth, &ibw, NULL);
|
||||
menubar_size += ibw;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue