ui/gtk: enable backend to send multi-touch events
commit5a4cb61ae1ab0068ab53535ed0ccaf41a5e97d2f
authorSergio Lopez <slp@redhat.com>
Fri, 26 May 2023 11:29:25 +0000 (26 13:29 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 28 May 2023 12:25:38 +0000 (28 16:25 +0400)
tree69d1d8680e1cd6af9d0263d316128f6485312063
parentf6157392d4e4047c56bc81da0de0e64617bf2785
ui/gtk: enable backend to send multi-touch events

GTK3 provides the infrastructure to receive and process multi-touch
events through the "touch-event" signal and the GdkEventTouch type.
Make use of it to transpose events from the host to the guest.

This allows users of machines with hardware capable of receiving
multi-touch events to run guests that can also receive those events
and interpret them as gestures, when appropriate.

An example of this in action can be seen here:

 https://fosstodon.org/@slp/109545849296546767

Signed-off-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230526112925.38794-7-slp@redhat.com>
ui/gtk.c