diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-04-23 15:39:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-09 09:19:47 +1000 |
commit | 91c3779270411fa524ac5c95f016ccf9a6b7537c (patch) | |
tree | 72afd626a5165dc7244f8cb2a6cd7338f83f7097 | |
parent | 51bf1f3a7634b4cd86c1985f286f7790c9e6d861 (diff) |
dix: use a temporary variable for listeners[0]
no functional changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | dix/events.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dix/events.c b/dix/events.c index e2e94a5f6..dc503118a 100644 --- a/dix/events.c +++ b/dix/events.c @@ -1427,21 +1427,22 @@ UpdateTouchesForGrab(DeviceIntPtr mouse) for (i = 0; i < mouse->touch->num_touches; i++) { TouchPointInfoPtr ti = mouse->touch->touches + i; + TouchListener *listener = &ti->listeners[0]; GrabPtr grab = mouse->deviceGrab.grab; if (ti->active && - CLIENT_BITS(ti->listeners[0].listener) == grab->resource) { - ti->listeners[0].listener = grab->resource; - ti->listeners[0].level = grab->grabtype; - ti->listeners[0].state = LISTENER_IS_OWNER; - ti->listeners[0].window = grab->window; + CLIENT_BITS(listener->listener) == grab->resource) { + listener->listener = grab->resource; + listener->level = grab->grabtype; + listener->state = LISTENER_IS_OWNER; + listener->window = grab->window; if (grab->grabtype == CORE || grab->grabtype == XI || !xi2mask_isset(grab->xi2mask, mouse, XI_TouchBegin)) - ti->listeners[0].type = LISTENER_POINTER_GRAB; + listener->type = LISTENER_POINTER_GRAB; else - ti->listeners[0].type = LISTENER_GRAB; - ti->listeners[0].grab = grab; + listener->type = LISTENER_GRAB; + listener->grab = grab; } } } |