From: Gerd Moellmann Date: Sun, 5 Mar 2000 20:22:48 +0000 (+0000) Subject: (coordinates_in_window): Use X-Git-Tag: emacs-pretest-21.0.90~4758 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=50df5e5a037356dfc7d6b34d4fd0f368c56ed71c;p=emacs.git (coordinates_in_window): Use FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of FRAME_INTERNAL_BORDER_WIDTH. --- 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); }