summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-23 12:00:13 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-23 12:01:09 +0930
commitfb146cbb0f28e4e480e5d16d61476ac46b5d00ce (patch)
tree0a75977cb06ee0c071ef3cc286093c5216a476ce /dix
parentfc1cc0adcb91fdfa4c547bf379a85f9558c959ff (diff)
dix: coreEvents doesn't have meaning here, use master instead.
We mustn't clip x/y if we are attached, otherwise we can't change screens.
Diffstat (limited to 'dix')
-rw-r--r--dix/getevents.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 0caa76409..fea5285b1 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -790,9 +790,10 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
if(v1) y += *v1;
/*TODO: Update the rest of the valuators */
- /* if not core -> clip both x and y to the defined limits (usually
- * co-ord space limit). */
- if(!pDev->coreEvents) {
+ /* if attached, clip both x and y to the defined limits (usually
+ * co-ord space limit). If it is attached, we need x/y to go over the
+ * limits to be able to change screens. */
+ if(master) {
clipAxis(pDev, 0, &x);
clipAxis(pDev, 1, &y);
}