]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_window): With Motif, double extra_borders.
authorRichard M. Stallman <rms@gnu.org>
Tue, 24 Sep 1996 00:37:53 +0000 (00:37 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 24 Sep 1996 00:37:53 +0000 (00:37 +0000)
Use a preprocessor conditional to test for Motif.

src/xfns.c

index abb639314ea5cfad77c33defb6c173835ece2107..96592c6decf4011a77612f6b4fdd298638336231 100644 (file)
@@ -2650,12 +2650,14 @@ x_window (f, window_prompting, minibuffer_only)
 
     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.