summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-07-16 23:13:51 +0000
committerKarl Heuer <kwzh@gnu.org>1996-07-16 23:13:51 +0000
commite8ca4cb8837aae9b5faabc223755cc9c9f14901b (patch)
tree0cb8843798c0a10773a0eff9a34adcb86519a31a /src/xfns.c
parent7653e4c65ef5ac8757744f4863b2cf9f1ba327e0 (diff)
downloademacs-e8ca4cb8837aae9b5faabc223755cc9c9f14901b.tar.gz
(Fx_create_frame): Do xlwmenu hack only if USE_LUCID.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index e3c32396f13..74229c6d67e 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -89,8 +89,10 @@ extern void _XEditResCheckMessages ();
Library. */
extern LWLIB_ID widget_id_tick;
+#ifdef USE_LUCID
/* This is part of a kludge--see lwlib/xlwmenu.c. */
extern XFontStruct *xlwmenu_default_font;
+#endif
extern void free_frame_menubar ();
#endif /* USE_X_TOOLKIT */
@@ -3147,7 +3149,7 @@ This function is an internal primitive--use `make-frame' instead.")
"font", "Font", string);
}
-#ifdef USE_X_TOOLKIT
+#ifdef USE_LUCID
/* Prevent lwlib/xlwmenu.c from crashing because of a bug
whereby it fails to get any font. */
xlwmenu_default_font = f->output_data.x->font;