dix: use a temporary variable for listeners[0]
no functional changes Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5363433a5c
commit
ccfa0f2d5d
17
dix/events.c
17
dix/events.c
|
@ -1427,21 +1427,22 @@ UpdateTouchesForGrab(DeviceIntPtr mouse)
|
||||||
|
|
||||||
for (i = 0; i < mouse->touch->num_touches; i++) {
|
for (i = 0; i < mouse->touch->num_touches; i++) {
|
||||||
TouchPointInfoPtr ti = mouse->touch->touches + i;
|
TouchPointInfoPtr ti = mouse->touch->touches + i;
|
||||||
|
TouchListener *listener = &ti->listeners[0];
|
||||||
GrabPtr grab = mouse->deviceGrab.grab;
|
GrabPtr grab = mouse->deviceGrab.grab;
|
||||||
|
|
||||||
if (ti->active &&
|
if (ti->active &&
|
||||||
CLIENT_BITS(ti->listeners[0].listener) == grab->resource) {
|
CLIENT_BITS(listener->listener) == grab->resource) {
|
||||||
ti->listeners[0].listener = grab->resource;
|
listener->listener = grab->resource;
|
||||||
ti->listeners[0].level = grab->grabtype;
|
listener->level = grab->grabtype;
|
||||||
ti->listeners[0].state = LISTENER_IS_OWNER;
|
listener->state = LISTENER_IS_OWNER;
|
||||||
ti->listeners[0].window = grab->window;
|
listener->window = grab->window;
|
||||||
|
|
||||||
if (grab->grabtype == CORE || grab->grabtype == XI ||
|
if (grab->grabtype == CORE || grab->grabtype == XI ||
|
||||||
!xi2mask_isset(grab->xi2mask, mouse, XI_TouchBegin))
|
!xi2mask_isset(grab->xi2mask, mouse, XI_TouchBegin))
|
||||||
ti->listeners[0].type = LISTENER_POINTER_GRAB;
|
listener->type = LISTENER_POINTER_GRAB;
|
||||||
else
|
else
|
||||||
ti->listeners[0].type = LISTENER_GRAB;
|
listener->type = LISTENER_GRAB;
|
||||||
ti->listeners[0].grab = grab;
|
listener->grab = grab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue