Commit 7dbf6181 authored by Peter Hutterer's avatar Peter Hutterer

dix: use a tmp variable for the to-be-removed touch listener

No functional changes.
Signed-off-by: default avatarPeter Hutterer <>
parent a71a2839
......@@ -719,12 +719,13 @@ TouchRemoveListener(TouchPointInfoPtr ti, XID resource)
for (i = 0; i < ti->num_listeners; i++) {
int j;
TouchListener *listener = &ti->listeners[i];
if (ti->listeners[i].listener != resource)
if (listener->listener != resource)
if (ti->listeners[i].grab) {
ti->listeners[i].grab = NULL;
if (listener->grab) {
listener->grab = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment