diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-24 00:37:53 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-24 00:37:53 +0000 |
commit | 0d323fb7e713c798a1280cff049b385c91a026e8 (patch) | |
tree | c9cc8ef6c3c709554d4419a6e7c4959ee6ab3266 | |
parent | f5439cf91501dea53bccbf8961593fef51ab9701 (diff) | |
download | emacs-0d323fb7e713c798a1280cff049b385c91a026e8.tar.gz |
(x_window): With Motif, double extra_borders.
Use a preprocessor conditional to test for Motif.
-rw-r--r-- | src/xfns.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c index abb639314ea..96592c6decf 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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. |