changeset 16305:00e57c8adaba

(x_window): With Motif, double extra_borders. Use a preprocessor conditional to test for Motif.
author Richard M. Stallman <rms@gnu.org>
date Tue, 24 Sep 1996 00:37:53 +0000
parents ba59fb4dd237
children 450f26426101
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon Sep 23 17:44:50 1996 +0000
+++ b/src/xfns.c	Tue Sep 24 00:37:53 1996 +0000
@@ -2650,12 +2650,14 @@
 
     f->output_data.x->menubar_height = menubar_size;
 
+#ifndef USE_LUCID
     /* Motif seems to need this amount added to the sizes
        specified for the shell widget.  The Athena/Lucid widgets don't.
        Both conclusions reached experimentally.  -- rms.  */
-    if (!strcmp (lwlib_toolkit_type, "motif"))
-      XtVaGetValues (f->output_data.x->edit_widget, XtNinternalBorderWidth,
-		     &extra_borders, NULL);
+    XtVaGetValues (f->output_data.x->edit_widget, XtNinternalBorderWidth,
+		   &extra_borders, NULL);
+    extra_borders *= 2;
+#endif
 
     /* Convert our geometry parameters into a geometry string
        and specify it.