xserver-multidpi/hw
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
..
dmx present: Add Present extension 2013-10-31 16:59:18 -07:00
kdrive kdrive: fix cursor jumps on CursorOffScreen behavior 2013-11-14 13:34:36 +10:00
vfb vfb: Initialize the GLX extension again. 2012-11-21 11:13:55 +11:00
xfree86 xfree86: Fix build without libpciaccess 2013-11-12 14:03:37 -08:00
xnest xnest: Ignore GetImage() error in xnestGetImage() 2013-09-10 13:26:26 -04:00
xquartz XQuartz: Don't sleep forever on exit if usleep() returns an error 2013-11-10 11:40:27 -08:00
xwin glx: Handle float config types in glxConvertConfigs 2013-10-24 11:47:42 -07:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00