mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 17:40:05 +01:00
dix: fix zaphod screen scrossing (#54654)
POINTER_SCREEN coordinates are screen-relative. For a Zaphod setup, the coordinates after a screen crossing are already relative to the new screen's origin. Add that offset to the coordinates before re-setting. regression introduced by commitbafbd99080Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Wed Aug 8 11:34:32 2012 +1000 dix: work around scaling issues during WarpPointer (#53037) X.Org Bug 54654 <http://bugs.freedesktop.org/show_bug.cgi?id=54654> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com> (cherry picked from commite7cd5cce74)
This commit is contained in:
parent
a3f11d2f60
commit
835737244f
1 changed files with 3 additions and 2 deletions
|
|
@ -1400,8 +1400,9 @@ fill_pointer_events(InternalEvent *events, DeviceIntPtr pDev, int type,
|
|||
coordinates were.
|
||||
*/
|
||||
if (flags & POINTER_SCREEN) {
|
||||
screenx = sx;
|
||||
screeny = sy;
|
||||
scr = miPointerGetScreen(pDev);
|
||||
screenx = sx + scr->x;
|
||||
screeny = sy + scr->y;
|
||||
}
|
||||
|
||||
scr = positionSprite(pDev, (flags & POINTER_ABSOLUTE) ? Absolute : Relative,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue