diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-22 12:58:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-22 12:58:52 +0200 |
commit | 9e0afdfee30fc32afaf03c9a44f2f05a7704f3ba (patch) | |
tree | 3dc27258507541f514ffa2db694beae771ca2b30 /src | |
parent | 8821ce80b1139b0104439a9e87d8d8e6e3b0b595 (diff) |
events.c: comment the pointer warping
Diffstat (limited to 'src')
-rw-r--r-- | src/events.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) { |