[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cursor not redrawn
From: |
Jan D. |
Subject: |
Re: Cursor not redrawn |
Date: |
Fri, 6 Jun 2003 22:26:16 +0200 (CEST) |
Hello.
The bug was introduced by this change:
2003-05-28 Kim F. Storm <address@hidden>
* xdisp.c (expose_window): Fix error in calculation of
window relative coordinates of area to redisplay.
Here is a diff:
--- ../../10/src/xdisp.c 2003-05-27 00:06:33.000000000 +0200
+++ ./xdisp.c 2003-05-28 01:30:10.000000000 +0200
@@ -20283,8 +20283,8 @@
r.x, r.y, r.width, r.height));
/* Convert to window coordinates. */
- r.x = FRAME_TO_WINDOW_PIXEL_X (w, r.x);
- r.y = FRAME_TO_WINDOW_PIXEL_Y (w, r.y);
+ r.x -= WINDOW_LEFT_EDGE_X (w);
+ r.y -= WINDOW_TOP_EDGE_Y (w);
/* Turn off the cursor. */
if (!w->pseudo_window_p
Apparently the cursors coordinates end up outside the frame in this case.
Checking these defines one sees that FRAME_TO_WINDOW_PIXEL_X is not the
same as -= WINDOW_LEFT_EDGE_X but rather -= WINDOW_BOX_LEFT_EDGE_X
Doing that change cures this problem, but since I don't know what this
change was supposed to fix originally, I suggest Kim makes the appropriate
change.
Jan D.
- Cursor not redrawn, Stefan Monnier, 2003/06/05
- Re: Cursor not redrawn, Lute Kamstra, 2003/06/06
- Re: Cursor not redrawn, Jan D., 2003/06/06
- Re: Cursor not redrawn, Lute Kamstra, 2003/06/06
- Re: Cursor not redrawn, Stefan Monnier, 2003/06/06
- Re: Cursor not redrawn,
Jan D. <=
- Re: Cursor not redrawn, Kim F. Storm, 2003/06/06
- Re: Cursor not redrawn, Kim F. Storm, 2003/06/09
- Re: Cursor not redrawn, Lute Kamstra, 2003/06/10