From 3cbe263b081eaa40753e122e5b98d74d9d9d0c9f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 1 Dec 2023 14:15:30 +0200 Subject: [PATCH] Fix mode-line-inactive face * src/xfaces.c (Finternal_set_lisp_face_attribute): Fix validation of the :style attribute of :box. Previously, nil for :style was not accepted, which causes 'mode-line-inactive' face to be rejected. (Bug#67567) --- src/xfaces.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xfaces.c b/src/xfaces.c index a23f4c302ed..7385c4c7dd2 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -3388,8 +3388,10 @@ FRAME 0 means change the face on all frames, and change the default } else if (EQ (k, QCstyle)) { - if (!EQ (v, Qpressed_button) && !EQ (v, Qreleased_button) - && !EQ(v, Qflat_button)) + if (!NILP (v) + && !EQ (v, Qpressed_button) + && !EQ (v, Qreleased_button) + && !EQ (v, Qflat_button)) break; } else -- 2.39.2