aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2023-05-17 12:03:32 +0300
committerDavid Edmundson <davidedmundson@kde.org>2023-08-07 13:38:01 +0000
commitedb943dc6464697ba13d7df277aef277721764b7 (patch)
tree07d1ef7496c3e78acfd906d20be379413c3338c1 /tests
parentci: upgrade FreeBSD to 13.2 (diff)
downloadwayland-edb943dc6464697ba13d7df277aef277721764b7.tar
wayland-edb943dc6464697ba13d7df277aef277721764b7.tar.gz
wayland-edb943dc6464697ba13d7df277aef277721764b7.tar.bz2
wayland-edb943dc6464697ba13d7df277aef277721764b7.tar.lz
wayland-edb943dc6464697ba13d7df277aef277721764b7.tar.xz
wayland-edb943dc6464697ba13d7df277aef277721764b7.tar.zst
wayland-edb943dc6464697ba13d7df277aef277721764b7.zip
client: Add method to get display for a given proxy
This can be useful for additional validation purposes when handling proxies. This is similar to existing server side API wl_global_get_display. Signed-off-by: David Edmundson <david@davidedmundson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/proxy-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/proxy-test.c b/tests/proxy-test.c
index c09468d..2a8f425 100644
--- a/tests/proxy-test.c
+++ b/tests/proxy-test.c
@@ -118,6 +118,8 @@ TEST(proxy_tag)
wl_proxy_set_tag((struct wl_proxy *) client.callback_b,
&tag_b);
+ assert(wl_proxy_get_display((struct wl_proxy *) client.callback_b) == client.display);
+
wl_display_flush(client.display);
while (server.sync_count < 2) {