mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
Also check for interface version wl_display_get_object_id().
This commit is contained in:
parent
97079ad52c
commit
8049cbb88a
3 changed files with 8 additions and 6 deletions
|
|
@ -47,7 +47,7 @@ screenshooter_create(struct wl_display *display)
|
|||
struct screenshooter *screenshooter;
|
||||
uint32_t id;
|
||||
|
||||
id = wl_display_get_object_id(display, "screenshooter");
|
||||
id = wl_display_get_object_id(display, "screenshooter", 1);
|
||||
if (id == 0) {
|
||||
fprintf(stderr, "server doesn't support screenshooter interface\n");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue