From dd254b21da63df630aff66970fbc8fb9eb3edbbe Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 1 Nov 1994 21:05:11 +0000 Subject: [PATCH] (x_window): Make ibw 0 by default. (Fx_create_frame): Don't set xlwmenu_default_font if not USE_X_TOOLKIT. --- src/xfns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index 9e508dc2eb4..6cd137bcea5 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2266,7 +2266,7 @@ x_window (f, window_prompting, minibuffer_only) if (FRAME_EXTERNAL_MENU_BAR (f)) { - Dimension ibw; + Dimension ibw = 0; XtVaGetValues (pane_widget, XtNinternalBorderWidth, &ibw, NULL); menubar_size += ibw; } @@ -2667,9 +2667,11 @@ This function is an internal primitive--use `make-frame' instead.") "font", "Font", string); } +#ifdef USE_X_TOOLKIT /* Prevent lwlib/xlwmenu.c from crashing because of a bug whereby it fails to get any font. */ xlwmenu_default_font = f->display.x->font; +#endif x_default_parameter (f, parms, Qborder_width, make_number (2), "borderwidth", "BorderWidth", number); -- 2.39.5