From 9e0afdfee30fc32afaf03c9a44f2f05a7704f3ba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 22 Apr 2010 12:58:52 +0200 Subject: events.c: comment the pointer warping --- src/events.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/events.c') diff --git a/src/events.c b/src/events.c index 7f477a2..a642ca4 100644 --- a/src/events.c +++ b/src/events.c @@ -468,6 +468,10 @@ static void feh_event_handle_MotionNotify(XEvent * ev) D(4, ("im_x %d, im_w %d, off %d, mx %d\n", winwid->im_x, winwid->im_w, winwid->click_offset_x, ev->xmotion.x)); + /* XWarpPointer generates a MotionNotify event which we will + * parse. Since that event would undo the effect of the pointer + * warp, we need to change the click_offset to compensate this. + */ if ((winwid->w - ev->xmotion.x <= 1) && (winwid->click_offset_x >= winwid->w - 4)) { -- cgit v1.2.3