xserver-multidpi/hw/kdrive
Peter Hutterer 550baf38f6 kdrive: fix cursor jumps on CursorOffScreen behavior
This patch fixes cursor jumps when there is a grab on the Xephyr window and
the pointer moves outside the window.

So on two side-by-side 640x480 screens, a coordinate of 0/481
triggers KdCursorOffscreen.

If the delta between two screens is 0, they share the same offset for
that dimension. When searching for the new screen, the loop always rules out
the current screen. So we get to the second screen, trigger the conditions
where dy <= 0 and decide that this new screen is the correct one. The result
is that whenever KdCursorOffScreen is called, the pointer jumps to the other
screen.

Change to check for dy < 0 etc. so that the cursor stays on the same screen if
there is no other screen at the target location.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
2013-11-14 13:34:36 +10:00
..
ephyr kdrive: modify ephyr events to use POINTER_DESKTOP and scale them to that 2013-11-14 13:34:23 +10:00
fake Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
fbdev Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
linux kdrive: Fix const cast warnings in driver name handling. 2013-08-21 09:10:45 -07:00
src kdrive: fix cursor jumps on CursorOffScreen behavior 2013-11-14 13:34:36 +10:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00
Xkdrive.man The great kdrive purge. 2008-05-16 08:16:01 -04:00