wayland-dma-buf: Don't send modifiers to old clients
authorDaniel Stone <daniels@collabora.com>
Mon, 2 Oct 2017 15:46:17 +0000 (16:46 +0100)
committerJeremy Bicha <jbicha@debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
commitb79f00485f4da0135f9496f9453da800ce75c49f
tree977811e318ec098206cb97f10a1fafc7aab2889f
parentc1c7230623cdc06feff4b713747692ede9691d0c
wayland-dma-buf: Don't send modifiers to old clients

The modifier event was only added in v3 of the client; sending it to
older clients (e.g. GStreamer waylandsink) causes them to disconnect
immediately.

Send the older 'format' event to all clients, and only send the newer
'modifier' event to resource versions 3 or above.

https://bugzilla.gnome.org/show_bug.cgi?id=788558

Gbp-Pq: Name 0001-wayland-dma-buf-Don-t-send-modifiers-to-old-clients.patch
src/wayland/meta-wayland-dma-buf.c