X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/94ae2ad44cfd711c836e0fbd86b9e133724482d5..1269a680862a9bc6cd65e3d26ef05f68c7521632:/src/xfaces.c diff --git a/src/xfaces.c b/src/xfaces.c index de7636e960..8a74c92b10 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -323,6 +323,7 @@ Lisp_Object Qheader_line, Qscroll_bar, Qcursor; static Lisp_Object Qborder, Qmouse, Qmenu; Lisp_Object Qmode_line_inactive; static Lisp_Object Qvertical_border; +static Lisp_Object Qwindow_divider; /* The symbol `face-alias'. A symbols having that property is an alias for another face. Value of the property is the name of @@ -911,8 +912,6 @@ load_pixmap (struct frame *f, Lisp_Object name) X Colors ***********************************************************************/ -#define NEAR_SAME_COLOR_THRESHOLD 30000 - /* Parse RGB_LIST, and fill in the RGB fields of COLOR. RGB_LIST should contain (at least) 3 lisp integers. Return 0 if there's a problem with RGB_LIST, otherwise return 1. */ @@ -1264,6 +1263,8 @@ load_color (struct frame *f, struct face *face, Lisp_Object name, #ifdef HAVE_WINDOW_SYSTEM +#define NEAR_SAME_COLOR_THRESHOLD 30000 + /* Load colors for face FACE which is used on frame F. Colors are specified by slots LFACE_BACKGROUND_INDEX and LFACE_FOREGROUND_INDEX of ATTRS. If the background color specified is not supported on F, @@ -2073,7 +2074,8 @@ lface_fully_specified_p (Lisp_Object attrs[LFACE_VECTOR_SIZE]) int i; for (i = 1; i < LFACE_VECTOR_SIZE; ++i) - if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX) + if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX + && i != LFACE_DISTANT_FOREGROUND_INDEX) if ((UNSPECIFIEDP (attrs[i]) || IGNORE_DEFFACE_P (attrs[i]))) break; @@ -5245,6 +5247,7 @@ realize_basic_faces (struct frame *f) realize_named_face (f, Qmouse, MOUSE_FACE_ID); realize_named_face (f, Qmenu, MENU_FACE_ID); realize_named_face (f, Qvertical_border, VERTICAL_BORDER_FACE_ID); + realize_named_face (f, Qwindow_divider, WINDOW_DIVIDER_FACE_ID); /* Reflect changes in the `menu' face in menu bars. */ if (FRAME_FACE_CACHE (f)->menu_face_changed_p) @@ -5343,9 +5346,6 @@ realize_default_face (struct frame *f) emacs_abort (); } - if (UNSPECIFIEDP (LFACE_DISTANT_FOREGROUND (lface))) - ASET (lface, LFACE_DISTANT_FOREGROUND_INDEX, build_string (unspecified_fg)); - if (UNSPECIFIEDP (LFACE_BACKGROUND (lface))) { /* This function is called so early that colors are not yet @@ -6450,6 +6450,7 @@ syms_of_xfaces (void) DEFSYM (Qmouse, "mouse"); DEFSYM (Qmode_line_inactive, "mode-line-inactive"); DEFSYM (Qvertical_border, "vertical-border"); + DEFSYM (Qwindow_divider, "window-divider"); DEFSYM (Qtty_color_desc, "tty-color-desc"); DEFSYM (Qtty_color_standard_values, "tty-color-standard-values"); DEFSYM (Qtty_color_by_index, "tty-color-by-index");