[mutter] wayland: Fix infinite loop in touch_handle_cancel_event()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: Fix infinite loop in touch_handle_cancel_event()
- Date: Wed, 23 Jul 2014 22:18:13 +0000 (UTC)
commit 5e395fb676bc5baba7d5bf934ffde3384a59f4a7
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 22 01:38:21 2014 +0200
wayland: Fix infinite loop in touch_handle_cancel_event()
https://bugzilla.gnome.org/show_bug.cgi?id=733631
src/wayland/meta-wayland-touch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
index 4922186..012a6a5 100644
--- a/src/wayland/meta-wayland-touch.c
+++ b/src/wayland/meta-wayland-touch.c
@@ -361,7 +361,7 @@ touch_send_frame_event (MetaWaylandTouch *touch)
{
GList *surfaces, *s;
- surfaces = s = touch_get_surfaces (touch, TRUE);
+ surfaces = touch_get_surfaces (touch, TRUE);
for (s = surfaces; s; s = s->next)
{
@@ -452,7 +452,7 @@ touch_handle_cancel_event (MetaWaylandTouch *touch,
surfaces = s = touch_get_surfaces (touch, FALSE);
- while (s)
+ for (s = surfaces; s; s = s->next)
{
MetaWaylandTouchSurface *touch_surface = s->data;
struct wl_resource *resource;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]