[PATCH 14/24] dix: use a tmp variable for the to-be-removed touch listener
Peter Hutterer
peter.hutterer at who-t.net
Thu May 9 22:30:49 PDT 2013
No functional changes.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
dix/touch.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dix/touch.c b/dix/touch.c
index be4a7de..01a554e 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -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)
continue;
- if (ti->listeners[i].grab) {
- ti->listeners[i].grab = NULL;
+ if (listener->grab) {
+ listener->grab = NULL;
ti->num_grabs--;
}
--
1.8.1.4
More information about the xorg-devel
mailing list