/[gentoo-x86]/x11-base/xorg-server/files/xorg-server-1.13.0-zaphod-screen-crossing.patch
Gentoo

Contents of /x11-base/xorg-server/files/xorg-server-1.13.0-zaphod-screen-crossing.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 7 09:40:46 2013 UTC (23 months, 1 week ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Raise resourceproto dependency, bug #450396. Drop some old versions.

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 From 835737244f84d34b0b9c5a93560710a2275dcc63 Mon Sep 17 00:00:00 2001
2 From: Peter Hutterer <peter.hutterer@who-t.net>
3 Date: Thu, 18 Oct 2012 05:11:31 +0000
4 Subject: dix: fix zaphod screen scrossing (#54654)
5
6 POINTER_SCREEN coordinates are screen-relative. For a Zaphod setup, the
7 coordinates after a screen crossing are already relative to the new screen's
8 origin. Add that offset to the coordinates before re-setting.
9
10 regression introduced by
11 commit bafbd99080be49a17be97d2cc758fbe623369945
12 Author: Peter Hutterer <peter.hutterer@who-t.net>
13 Date: Wed Aug 8 11:34:32 2012 +1000
14
15 dix: work around scaling issues during WarpPointer (#53037)
16
17 X.Org Bug 54654 <http://bugs.freedesktop.org/show_bug.cgi?id=54654>
18
19 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
20 Reviewed-by: Keith Packard <keithp@keithp.com>
21 (cherry picked from commit e7cd5cce740e653000fb1192b600268dcf77dde2)
22 ---
23 diff --git a/dix/getevents.c b/dix/getevents.c
24 index 71d83c4..8b4379d 100644
25 --- a/dix/getevents.c
26 +++ b/dix/getevents.c
27 @@ -1400,8 +1400,9 @@ fill_pointer_events(InternalEvent *events, DeviceIntPtr pDev, int type,
28 coordinates were.
29 */
30 if (flags & POINTER_SCREEN) {
31 - screenx = sx;
32 - screeny = sy;
33 + scr = miPointerGetScreen(pDev);
34 + screenx = sx + scr->x;
35 + screeny = sy + scr->y;
36 }
37
38 scr = positionSprite(pDev, (flags & POINTER_ABSOLUTE) ? Absolute : Relative,
39 --
40 cgit v0.9.0.2-2-gbebe

  ViewVC Help
Powered by ViewVC 1.1.20