mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
wayland: Fix infinite loop in touch_handle_cancel_event()
https://bugzilla.gnome.org/show_bug.cgi?id=733631
This commit is contained in:
parent
ac448bd42b
commit
5e395fb676
@ -361,7 +361,7 @@ touch_send_frame_event (MetaWaylandTouch *touch)
|
|||||||
{
|
{
|
||||||
GList *surfaces, *s;
|
GList *surfaces, *s;
|
||||||
|
|
||||||
surfaces = s = touch_get_surfaces (touch, TRUE);
|
surfaces = touch_get_surfaces (touch, TRUE);
|
||||||
|
|
||||||
for (s = surfaces; s; s = s->next)
|
for (s = surfaces; s; s = s->next)
|
||||||
{
|
{
|
||||||
@ -452,7 +452,7 @@ touch_handle_cancel_event (MetaWaylandTouch *touch,
|
|||||||
|
|
||||||
surfaces = s = touch_get_surfaces (touch, FALSE);
|
surfaces = s = touch_get_surfaces (touch, FALSE);
|
||||||
|
|
||||||
while (s)
|
for (s = surfaces; s; s = s->next)
|
||||||
{
|
{
|
||||||
MetaWaylandTouchSurface *touch_surface = s->data;
|
MetaWaylandTouchSurface *touch_surface = s->data;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user