7905248163b589cbb3094731e447ab03317670c4
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / x11r7 / xdriver_xf86-video-sis / 0007-xi.patch
1 Fetch from:
2 https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/xf86-video-sis&id=7aaa7a9786ce5654df877311909244e0a6c42fd1
3
4 Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
5
6 --- xf86-video-sis-0.10.7/src/sis_driver.c      2013-03-10 13:57:50.000000000 +0100
7 +++ xf86-video-sis-0.10.7/src/sis_driver.c.new  2013-03-10 13:54:48.645203559 +0100
8 @@ -9378,7 +9378,15 @@
9       }
10       if(doit) {
11         sigstate = xf86BlockSIGIO();
12 -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 15
13 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 18
14 +        {
15 +            double dx = x, dy = y;
16 +            miPointerSetPosition(inputInfo.pointer, Absolute, &dx, &dy,
17 +                NULL, NULL);
18 +            x = (int)dx;
19 +            y = (int)dy;
20 +        }
21 +#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 15
22          {
23              double dx = x, dy = y;
24              miPointerSetPosition(inputInfo.pointer, Absolute, &dx, &dy);