]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_window): Take account of internal border of paned widget.
authorRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 12:43:42 +0000 (12:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 12:43:42 +0000 (12:43 +0000)
src/xfns.c

index 4e3144e5dc42a79032239765db2b97d69e8b8ae6..b3c2731c7d1e8686986b76911c5f68e9fcc43b67 100644 (file)
@@ -1908,12 +1908,18 @@ 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 (window_prompting & USPosition)
       {
        int left = f->display.x->left_pos;