diff options
| author | Richard M. Stallman | 1996-09-24 00:37:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-24 00:37:53 +0000 |
| commit | 440b0bfd4cfe3ed075a64017493d3693cff81857 (patch) | |
| tree | 8c335ac93b0a3c41a836345ea0dd1522c3e728e3 /src | |
| parent | 3617aa76fcfd1ac96e6888867ab438587df1753f (diff) | |
| download | emacs-440b0bfd4cfe3ed075a64017493d3693cff81857.tar.gz emacs-440b0bfd4cfe3ed075a64017493d3693cff81857.zip | |
(x_window): With Motif, double extra_borders.
Use a preprocessor conditional to test for Motif.
Diffstat (limited to 'src')
| -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) | |||
| 2650 | 2650 | ||
| 2651 | f->output_data.x->menubar_height = menubar_size; | 2651 | f->output_data.x->menubar_height = menubar_size; |
| 2652 | 2652 | ||
| 2653 | #ifndef USE_LUCID | ||
| 2653 | /* Motif seems to need this amount added to the sizes | 2654 | /* Motif seems to need this amount added to the sizes |
| 2654 | specified for the shell widget. The Athena/Lucid widgets don't. | 2655 | specified for the shell widget. The Athena/Lucid widgets don't. |
| 2655 | Both conclusions reached experimentally. -- rms. */ | 2656 | Both conclusions reached experimentally. -- rms. */ |
| 2656 | if (!strcmp (lwlib_toolkit_type, "motif")) | 2657 | XtVaGetValues (f->output_data.x->edit_widget, XtNinternalBorderWidth, |
| 2657 | XtVaGetValues (f->output_data.x->edit_widget, XtNinternalBorderWidth, | 2658 | &extra_borders, NULL); |
| 2658 | &extra_borders, NULL); | 2659 | extra_borders *= 2; |
| 2660 | #endif | ||
| 2659 | 2661 | ||
| 2660 | /* Convert our geometry parameters into a geometry string | 2662 | /* Convert our geometry parameters into a geometry string |
| 2661 | and specify it. | 2663 | and specify it. |