Mercurial > emacs
changeset 27850:3c13fcdeb63a
(coordinates_in_window): Take frame's internal border width
into account.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 25 Feb 2000 10:38:54 +0000 |
parents | ae01cfb49200 |
children | 868b592aac4a |
files | src/window.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Fri Feb 25 10:22:28 2000 +0000 +++ b/src/window.c Fri Feb 25 10:38:54 2000 +0000 @@ -464,9 +464,11 @@ } 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); }