aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index d1e4715c329..8644ce26d13 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1106,7 +1106,7 @@ struct glyph_row *matrix_row (struct glyph_matrix *, int);
1106#define MATRIX_BOTTOM_TEXT_ROW(MATRIX, W) \ 1106#define MATRIX_BOTTOM_TEXT_ROW(MATRIX, W) \
1107 ((MATRIX)->rows \ 1107 ((MATRIX)->rows \
1108 + (MATRIX)->nrows \ 1108 + (MATRIX)->nrows \
1109 - (WINDOW_WANTS_MODELINE_P ((W)) ? 1 : 0)) 1109 - (window_wants_mode_line ((W)) ? 1 : 0))
1110 1110
1111/* Non-zero if the face of the last glyph in ROW's text area has 1111/* Non-zero if the face of the last glyph in ROW's text area has
1112 to be drawn to the end of the text area. */ 1112 to be drawn to the end of the text area. */
@@ -1469,40 +1469,6 @@ struct glyph_string
1469#define DESIRED_HEADER_LINE_HEIGHT(W) \ 1469#define DESIRED_HEADER_LINE_HEIGHT(W) \
1470 MATRIX_HEADER_LINE_HEIGHT ((W)->desired_matrix) 1470 MATRIX_HEADER_LINE_HEIGHT ((W)->desired_matrix)
1471 1471
1472/* PXW: The height checks below serve to show at least one text line
1473 instead of a mode- and/or header line when a window gets very small.
1474 But (1) the check fails when the mode- or header-line is taller than
1475 the associated frame's line height and (2) we don't care much about
1476 text visibility anyway when shrinking a frame containing a toolbar.
1477
1478 So maybe these checks should be removed and any clipping left to the
1479 window manager. */
1480
1481/* Value is true if window W wants a mode line and is large enough
1482 to accommodate it. */
1483#define WINDOW_WANTS_MODELINE_P(W) \
1484 (BUFFERP ((W)->contents) \
1485 ? (!MINI_WINDOW_P (W) \
1486 && !(W)->pseudo_window_p \
1487 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME (W))) \
1488 && !NILP (BVAR (XBUFFER ((W)->contents), mode_line_format)) \
1489 && WINDOW_PIXEL_HEIGHT (W) > WINDOW_FRAME_LINE_HEIGHT (W)) \
1490 : false)
1491
1492/* Value is true if window W wants a header line and is large enough
1493 to accommodate it. */
1494#define WINDOW_WANTS_HEADER_LINE_P(W) \
1495 (BUFFERP ((W)->contents) \
1496 ? (!MINI_WINDOW_P (W) \
1497 && !(W)->pseudo_window_p \
1498 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME (W))) \
1499 && !NILP (BVAR (XBUFFER ((W)->contents), header_line_format)) \
1500 && (WINDOW_PIXEL_HEIGHT (W) \
1501 > (WINDOW_WANTS_MODELINE_P (W) \
1502 ? (2 * WINDOW_FRAME_LINE_HEIGHT (W)) \
1503 : WINDOW_FRAME_LINE_HEIGHT (W)))) \
1504 : false)
1505
1506/* Return proper value to be used as baseline offset of font that has 1472/* Return proper value to be used as baseline offset of font that has
1507 ASCENT and DESCENT to draw characters by the font at the vertical 1473 ASCENT and DESCENT to draw characters by the font at the vertical
1508 center of the line of frame F. 1474 center of the line of frame F.