aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 5fd50d0fd90..36342f7265d 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -923,6 +923,14 @@ extern struct glyph_row scratch_glyph_row;
923 ? MATRIX_HEADER_LINE_ROW (MATRIX)->height \ 923 ? MATRIX_HEADER_LINE_ROW (MATRIX)->height \
924 : 0) 924 : 0)
925 925
926/* Return the desired face id for the mode line of window W.
927 This depends on whether the window is selected or not. */
928
929#define CURRENT_MODE_LINE_FACE_ID(W) \
930 ((W) == selected_window \
931 ? MODE_LINE_FACE_ID \
932 : MODE_LINE_INACTIVE_FACE_ID)
933
926/* Return the current height of the mode line of window W. If not 934/* Return the current height of the mode line of window W. If not
927 known from current_mode_line_height, look at W's current glyph 935 known from current_mode_line_height, look at W's current glyph
928 matrix, or return a default based on the height of the font of the 936 matrix, or return a default based on the height of the font of the
@@ -934,7 +942,7 @@ extern struct glyph_row scratch_glyph_row;
934 : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 942 : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
935 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 943 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
936 : estimate_mode_line_height (XFRAME ((W)->frame), \ 944 : estimate_mode_line_height (XFRAME ((W)->frame), \
937 MODE_LINE_FACE_ID))) 945 CURRENT_MODE_LINE_FACE_ID (W))))
938 946
939/* Return the current height of the header line of window W. If not 947/* Return the current height of the header line of window W. If not
940 known from current_header_line_height, look at W's current glyph 948 known from current_header_line_height, look at W's current glyph
@@ -1353,6 +1361,7 @@ enum face_id
1353{ 1361{
1354 DEFAULT_FACE_ID, 1362 DEFAULT_FACE_ID,
1355 MODE_LINE_FACE_ID, 1363 MODE_LINE_FACE_ID,
1364 MODE_LINE_INACTIVE_FACE_ID,
1356 TOOL_BAR_FACE_ID, 1365 TOOL_BAR_FACE_ID,
1357 FRINGE_FACE_ID, 1366 FRINGE_FACE_ID,
1358 HEADER_LINE_FACE_ID, 1367 HEADER_LINE_FACE_ID,