From 50df5e5a037356dfc7d6b34d4fd0f368c56ed71c Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 5 Mar 2000 20:22:48 +0000 Subject: [PATCH] (coordinates_in_window): Use FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of FRAME_INTERNAL_BORDER_WIDTH. --- src/ChangeLog | 13 +++++++++++++ src/window.c | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index fd62357353c..088a3a9aacd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,18 @@ 2000-03-05 Gerd Moellmann + * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. + + * xfns.c (QCdata): Moved to xdisp.c. + + * xdisp.c (QCdata): Moved here from xfns.c. + (syms_of_xdisp): Initialize QCdata. + + * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. + + * window.c (coordinates_in_window): Use + FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of + FRAME_INTERNAL_BORDER_WIDTH. + * xdisp.c (try_window_id): Recompute unchanged information if it is invalid. diff --git a/src/window.c b/src/window.c index a838c0b6558..a1764ee3fa6 100644 --- a/src/window.c +++ b/src/window.c @@ -468,10 +468,10 @@ coordinates_in_window (w, x, y) else { left_x = (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X (w) - - FRAME_INTERNAL_BORDER_WIDTH (f)); + - FRAME_INTERNAL_BORDER_WIDTH_SAFE (f)); right_x = WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X (w); top_y = (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y (w) - - FRAME_INTERNAL_BORDER_WIDTH (f)); + - FRAME_INTERNAL_BORDER_WIDTH_SAFE (f)); bottom_y = WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y (w); } -- 2.39.5