From 01cbdba594074fc3e8e3ded1edad2e13fdc89c8c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 19 Jun 1994 19:07:47 +0000 Subject: [PATCH] (x_window): Take account of pane widget internal border width. --- src/xfns.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index a8bcc81cc51..3a5c0883383 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1939,6 +1939,13 @@ x_window (f, window_prompting, minibuffer_only) NULL); menubar_size += ibw; + if (FRAME_EXTERNAL_MENU_BAR (f)) + { + int ibw; + XtVaGetValues (pane_widget, XtNinternalBorderWidth, &ibw, NULL); + menubar_size += ibw; + } + if (window_prompting & USPosition) { int left = f->display.x->left_pos; -- 2.39.5