dix: refine docs on DeliverDeviceEvents()
Adding a bit more explaination on how events are passed upwards. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
09781e8710
commit
d6d510ca61
|
|
@ -2869,6 +2869,9 @@ DeliverOneEvent(InternalEvent *event, DeviceIntPtr dev, enum InputLevel level,
|
|||
* For focused events, DeliverFocusedEvent is called first, and _may_ call
|
||||
* DeliverDeviceEvents.
|
||||
*
|
||||
* If the event can't be delivered to the given window itself, trying it's
|
||||
* parents, up until we find one that's taking the event.
|
||||
*
|
||||
* @param pWin Window to deliver event to.
|
||||
* @param event The events to deliver, not yet in wire format.
|
||||
* @param grab Possible grab on a device.
|
||||
|
|
@ -2888,6 +2891,7 @@ DeliverDeviceEvents(WindowPtr pWin, InternalEvent *event, GrabPtr grab,
|
|||
|
||||
verify_internal_event(event);
|
||||
|
||||
// try the window and all its parent, whichever one first wants the event
|
||||
while (pWin) {
|
||||
if ((mask = EventIsDeliverable(dev, event->any.type, pWin))) {
|
||||
/* XI2 events first */
|
||||
|
|
@ -2912,7 +2916,6 @@ DeliverDeviceEvents(WindowPtr pWin, InternalEvent *event, GrabPtr grab,
|
|||
if (deliveries > 0)
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ((deliveries < 0) || (pWin == stopAt) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue