diff options
author | marha <marha@users.sourceforge.net> | 2011-06-15 16:50:54 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-06-15 16:50:54 +0200 |
commit | 0e661faf8cf2e3460b5e2389414f99c035ad4d6a (patch) | |
tree | d67bcdbab7099872d8f79906159e0690478c65cd /xorg-server/Xi/exevents.c | |
parent | 4d74e36f359d22b50302c82a922b79ac24dd3e23 (diff) | |
download | vcxsrv-0e661faf8cf2e3460b5e2389414f99c035ad4d6a.tar.gz vcxsrv-0e661faf8cf2e3460b5e2389414f99c035ad4d6a.tar.bz2 vcxsrv-0e661faf8cf2e3460b5e2389414f99c035ad4d6a.zip |
mesa xserver git update 15 June 2011
Diffstat (limited to 'xorg-server/Xi/exevents.c')
-rw-r--r-- | xorg-server/Xi/exevents.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/xorg-server/Xi/exevents.c b/xorg-server/Xi/exevents.c index 3b0411d61..3e3c67b63 100644 --- a/xorg-server/Xi/exevents.c +++ b/xorg-server/Xi/exevents.c @@ -876,32 +876,6 @@ UpdateDeviceState(DeviceIntPtr device, DeviceEvent* event) return DEFAULT; } -static void -ProcessRawEvent(RawDeviceEvent *ev, DeviceIntPtr device) -{ - GrabPtr grab = device->deviceGrab.grab; - - if (grab) - DeliverGrabbedEvent((InternalEvent*)ev, device, FALSE); - else { /* deliver to all root windows */ - xEvent *xi; - int i; - - i = EventToXI2((InternalEvent*)ev, (xEvent**)&xi); - if (i != Success) - { - ErrorF("[Xi] %s: XI2 conversion failed in %s (%d)\n", - __func__, device->name, i); - return; - } - - for (i = 0; i < screenInfo.numScreens; i++) - DeliverEventsToWindow(device, screenInfo.screens[i]->root, xi, 1, - GetEventFilter(device, xi), NULL); - free(xi); - } -} - /** * Main device event processing function. * Called from when processing the events from the event queue. @@ -929,7 +903,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device) ev->any.type == ET_RawButtonRelease || ev->any.type == ET_RawMotion) { - ProcessRawEvent(&ev->raw_event, device); + DeliverRawEvent(&ev->raw_event, device); return; } |