1. Nic Ferrier
  2. emacs


Richard M. Stallman  committed 00e57c8

(x_window): With Motif, double extra_borders.
Use a preprocessor conditional to test for Motif.

  • Participants
  • Parent commits ba59fb4
  • Branches default

Comments (0)

Files changed (1)

File src/xfns.c

View file
     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;
     /* Convert our geometry parameters into a geometry string
        and specify it.