client: assert queue display matches proxy
authorSimon Ser <contact@emersion.fr>
Thu, 25 Feb 2021 22:49:00 +0000 (23:49 +0100)
committerSimon Ser <contact@emersion.fr>
Thu, 25 Feb 2021 22:49:00 +0000 (23:49 +0100)
commit727c7903b27870bed0063814dd594466f21bf6eb
treecd3899f37cd076a34d8cbb4f6cff2b6d42b34000
parent70f1c83fd9380bf40d904b2806c2af07e688e960
client: assert queue display matches proxy

In wl_proxy_set_queue, passing a wl_event_queue from a completely
unrelated wl_display could lead to object IDs mismatches.

Add an assertion to catch this case. It's always a user bug if this
happens.

Signed-off-by: Simon Ser <contact@emersion.fr>
src/wayland-client.c