From d9bc7dbefd88995d04b9843f521d82118265fecf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 30 Jul 2021 21:51:59 +0300 Subject: [PATCH] * src/fontset.c (check_fontset_name): Fix last change. --- src/fontset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontset.c b/src/fontset.c index 52c7e381e15..d2d428da2ee 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -1356,7 +1356,7 @@ check_fontset_name (Lisp_Object name, Lisp_Object *frame) int id; struct frame *f = decode_live_frame (*frame); - if (!FRAME_WINDOW_P (f)) + if (!FRAME_WINDOW_P (f) && !FRAME_INITIAL_P (f)) error ("Can't use fontsets in non-GUI frames"); XSETFRAME (*frame, f); -- 2.39.2