mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -08:00
(coordinates_in_window): Take frame's internal border width
into account.
This commit is contained in:
parent
bed0c17121
commit
2add43492a
2 changed files with 6 additions and 2 deletions
|
|
@ -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 <gerd@gnu.org>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue