From fb146cbb0f28e4e480e5d16d61476ac46b5d00ce Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 23 May 2008 12:00:13 +0930 Subject: [PATCH] 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. --- dix/getevents.c | 7 ++++--- 1 file 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); }