From b46dfc644eb5bff5e04bf005011f83e8c8875611 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 30 Aug 1999 23:14:27 +0000 Subject: [PATCH] (coordinates_in_window): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once instead of twice. --- src/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.c b/src/window.c index cc19b7606cf..623a48d6611 100644 --- a/src/window.c +++ b/src/window.c @@ -446,7 +446,7 @@ coordinates_in_window (w, x, y) { struct frame *f = XFRAME (WINDOW_FRAME (w)); int left_x, right_x, top_y, bottom_y; - int flags_area_width = FRAME_FLAGS_AREA_WIDTH (f); + int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f); if (w->pseudo_window_p) { @@ -3387,7 +3387,7 @@ window_internal_width (w) /* On window-systems, areas to the left and right of the window are used to display bitmaps there. */ if (FRAME_WINDOW_P (f)) - width -= 2 * FRAME_FLAGS_AREA_COLS (f); + width -= FRAME_FLAGS_AREA_COLS (f); return width; } -- 2.39.5