simple-touch: Handle multiple seats properly
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Wed, 7 May 2014 08:57:27 +0000 (11:57 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 9 May 2014 19:50:11 +0000 (12:50 -0700)
commitc3f03f557b49f701c13557f266a57e0aa0ecf310
tree773d3294314760fd996c0e696923a3b0b843e942
parent9c6217e6dc16684953f309e8b64bafe727717b73
simple-touch: Handle multiple seats properly

If simple-touch ran on a compositor with multiple seats, and the first
one happened to have the touch capability while the second one didn't,
the handler for seat capabilities would destroy the wl_touch device it
created on the first call for the first seat when it was called a again
for the second seat that has not touch capabilities.

Fix this problem by creating a separate struct for each seat.

https://bugs.freedesktop.org/show_bug.cgi?id=78365
clients/simple-touch.c