From f31315aaa8df8630415a9ba6aeeb8b97dcd5094b Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 20 Oct 2010 16:43:00 +0000 Subject: xserver git update 20/10/2010 --- xorg-server/hw/xfree86/common/xf86DGA.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xorg-server/hw/xfree86') diff --git a/xorg-server/hw/xfree86/common/xf86DGA.c b/xorg-server/hw/xfree86/common/xf86DGA.c index 1d46a67d3..9a99a339b 100644 --- a/xorg-server/hw/xfree86/common/xf86DGA.c +++ b/xorg-server/hw/xfree86/common/xf86DGA.c @@ -1133,6 +1133,10 @@ DGAProcessPointerEvent (ScreenPtr pScreen, DGAEvent *event, DeviceIntPtr mouse) ev.root_x = event->dx; ev.root_y = event->dy; ev.corestate = event->state; + /* DGA is core only, so valuators.data doesn't actually matter. + * Mask must be set for EventToCore to create motion events. */ + SetBit(ev.valuators.mask, 0); + SetBit(ev.valuators.mask, 1); DeliverGrabbedEvent ((InternalEvent*)&ev, mouse, FALSE); } } -- cgit v1.2.3