gdk: Fix wl_output accounting on tablet devices
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Oct 2019 15:46:38 +0000 (17:46 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Oct 2019 15:59:57 +0000 (17:59 +0200)
commitf354a7787a6b35664cc9dcb5e5e0a9b065f78442
tree036a1646839aacf665974693992fbb0e5143bc52
parent83eeeb6a19b3b7671a82605bc99cd85974d5c78e
gdk: Fix wl_output accounting on tablet devices

The code managing this accounting mixed seat and tablet output lists,
can't bode well. Fixes invalid reads on list elements, as there are
dangling pointers.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/2157
gdk/wayland/gdkdevice-wayland.c