changeset 7797:f127eb11ea7f

(x_window): Take account of internal border of paned widget.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jun 1994 12:43:42 +0000
parents 3c9a17efac91
children f627fbbd4524
files src/xfns.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Jun 05 12:12:44 1994 +0000
+++ b/src/xfns.c	Sun Jun 05 12:43:42 1994 +0000
@@ -1908,12 +1908,18 @@
     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;