Fix misreporting of window top line

* src/frame.h (FRAME_TOOL_BAR_TOP_LINES): Return tool_bar_lines,
not tool_bar_height.
This commit is contained in:
Po Lu 2023-07-14 15:33:48 +08:00
parent 01b80a6f0e
commit 2df086d121

View file

@ -1003,7 +1003,7 @@ default_pixels_per_inch_y (void)
#define FRAME_TOOL_BAR_TOP_LINES(f) \
((BASE_EQ ((f)->tool_bar_position, Qtop)) \
? (f)->tool_bar_height : 0)
? (f)->tool_bar_lines : 0)
/* Size of F's tool bar if it is placed at the bottom of the
frame. */