Skip to content
Snippets Groups Projects
Commit ccfa6b9b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

pointer warping: add TODO, change logic for north and west border.

parent c0649c4b
No related branches found
No related tags found
No related merge requests found
...@@ -596,8 +596,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev) ...@@ -596,8 +596,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev)
ev->xmotion.y); ev->xmotion.y);
winwid->click_offset_x -= winwid->w - 4; winwid->click_offset_x -= winwid->w - 4;
} }
else if ((ev->xmotion.x <= 1) && (winwid->w < // TODO needlessly warps for certain zoom levels
(winwid->im_x + winwid->im_w * winwid->zoom))) 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, XWarpPointer(disp, None, winwid->win, 0, 0, 0, 0,
winwid->w - 4, ev->xmotion.y); winwid->w - 4, ev->xmotion.y);
...@@ -610,8 +611,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev) ...@@ -610,8 +611,9 @@ static void feh_event_handle_MotionNotify(XEvent * ev)
ev->xmotion.x, 3); ev->xmotion.x, 3);
winwid->click_offset_y -= winwid->h - 4; winwid->click_offset_y -= winwid->h - 4;
} }
else if ((ev->xmotion.y <= 1) && (winwid->h < // TODO needlessly warps for certain zoomlevels
(winwid->im_y + winwid->im_h * winwid->zoom))) 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, XWarpPointer(disp, None, winwid->win, 0, 0, 0, 0,
ev->xmotion.x, winwid->h - 4); ev->xmotion.x, winwid->h - 4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment