diff options
Diffstat (limited to 'clients/simple-dmabuf.c')
-rw-r--r-- | clients/simple-dmabuf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clients/simple-dmabuf.c b/clients/simple-dmabuf.c index b85f3205..354af7bd 100644 --- a/clients/simple-dmabuf.c +++ b/clients/simple-dmabuf.c @@ -41,7 +41,7 @@ #include <wayland-client.h> #include "xdg-shell-client-protocol.h" -#include "fullscreen-shell-client-protocol.h" +#include "fullscreen-shell-unstable-v1-client-protocol.h" #include "linux-dmabuf-client-protocol.h" struct display { @@ -49,7 +49,7 @@ struct display { struct wl_registry *registry; struct wl_compositor *compositor; struct xdg_shell *shell; - struct _wl_fullscreen_shell *fshell; + struct zwp_fullscreen_shell_v1 *fshell; struct zlinux_dmabuf *dmabuf; int xrgb8888_format_found; }; @@ -336,10 +336,10 @@ create_window(struct display *display, int width, int height) xdg_surface_set_title(window->xdg_surface, "simple-dmabuf"); } else if (display->fshell) { - _wl_fullscreen_shell_present_surface(display->fshell, - window->surface, - _WL_FULLSCREEN_SHELL_PRESENT_METHOD_DEFAULT, - NULL); + zwp_fullscreen_shell_v1_present_surface(display->fshell, + window->surface, + ZWP_FULLSCREEN_SHELL_V1_PRESENT_METHOD_DEFAULT, + NULL); } else { assert(0); } @@ -473,9 +473,9 @@ registry_handle_global(void *data, struct wl_registry *registry, id, &xdg_shell_interface, 1); xdg_shell_use_unstable_version(d->shell, XDG_VERSION); xdg_shell_add_listener(d->shell, &xdg_shell_listener, d); - } else if (strcmp(interface, "_wl_fullscreen_shell") == 0) { + } else if (strcmp(interface, "zwp_fullscreen_shell_v1") == 0) { d->fshell = wl_registry_bind(registry, - id, &_wl_fullscreen_shell_interface, 1); + id, &zwp_fullscreen_shell_v1_interface, 1); } else if (strcmp(interface, "zlinux_dmabuf") == 0) { d->dmabuf = wl_registry_bind(registry, id, &zlinux_dmabuf_interface, 1); @@ -539,7 +539,7 @@ destroy_display(struct display *display) xdg_shell_destroy(display->shell); if (display->fshell) - _wl_fullscreen_shell_release(display->fshell); + zwp_fullscreen_shell_v1_release(display->fshell); if (display->compositor) wl_compositor_destroy(display->compositor); |