diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2013-11-25 23:46:08 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2013-11-25 23:46:08 +0100 | 
| commit | ccfa6b9bf3a41cee5157c4e37dec3391c6a9bab4 (patch) | |
| tree | f8d0a383a6f4c580c776003b4eb43438ff0d2f3f /src | |
| parent | c0649c4b2a7c824abc743fa59457221e2bc3ab21 (diff) | |
pointer warping: add TODO, change logic for north and west border.
Diffstat (limited to 'src')
| -rw-r--r-- | src/events.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/src/events.c b/src/events.c index 92b6e69..e6cf0ac 100644 --- a/src/events.c +++ b/src/events.c @@ -596,8 +596,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev)  					ev->xmotion.y);  				winwid->click_offset_x -= winwid->w - 4;  			} -			else if ((ev->xmotion.x <= 1) && (winwid->w < -					(winwid->im_x + winwid->im_w * winwid->zoom))) +			// TODO needlessly warps for certain zoom levels +			else if ((ev->xmotion.x <= 1) && (winwid->im_x > +					(winwid->w - winwid->im_w * winwid->zoom)))  			{  				XWarpPointer(disp, None, winwid->win, 0, 0, 0, 0,  					winwid->w - 4, ev->xmotion.y); @@ -610,8 +611,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev)  					ev->xmotion.x, 3);  				winwid->click_offset_y -= winwid->h - 4;  			} -			else if ((ev->xmotion.y <= 1) && (winwid->h < -					(winwid->im_y + winwid->im_h * winwid->zoom))) +			// TODO needlessly warps for certain zoomlevels +			else if ((ev->xmotion.y <= 1) && (winwid->im_y > +					(winwid->h - winwid->im_h * winwid->zoom)))  			{  				XWarpPointer(disp, None, winwid->win, 0, 0, 0, 0,  					ev->xmotion.x, winwid->h - 4); | 
