From 2add43492a4a3f516edffad658a9fb9aebf116d2 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 25 Feb 2000 10:39:47 +0000 Subject: [PATCH] (coordinates_in_window): Take frame's internal border width into account. --- src/ChangeLog | 2 ++ src/window.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 19db11870fe..dbdd1515605 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,8 @@ * window.c (Fset_window_buffer): Set WINDOW to the window after decoding. + (coordinates_in_window): Take frame's internal border width + into account. 2000-02-24 Gerd Moellmann diff --git a/src/window.c b/src/window.c index bdc0c6c1bc0..be6bf813920 100644 --- a/src/window.c +++ b/src/window.c @@ -464,9 +464,11 @@ coordinates_in_window (w, x, y) } else { - left_x = WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X (w); + left_x = (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X (w) + - FRAME_INTERNAL_BORDER_WIDTH (f)); right_x = WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X (w); - top_y = WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y (w); + top_y = (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y (w) + - FRAME_INTERNAL_BORDER_WIDTH (f)); bottom_y = WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y (w); } -- 2.39.5