From e2c6568dd692525d71d510a99180a9f24d462236 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 21 Feb 2024 20:24:24 +0200 Subject: [PATCH] clients/dmabuf-egl: Remove zwp_fullscreen support Signed-off-by: Marius Vlad --- clients/meson.build | 2 -- clients/simple-dmabuf-egl.c | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/clients/meson.build b/clients/meson.build index 8fd15a929..154f2e501 100644 --- a/clients/meson.build +++ b/clients/meson.build @@ -99,8 +99,6 @@ simple_clients = [ xdg_shell_protocol_c, weston_direct_display_client_protocol_h, weston_direct_display_protocol_c, - fullscreen_shell_unstable_v1_client_protocol_h, - fullscreen_shell_unstable_v1_protocol_c, ], 'dep_objs': [ dep_wayland_client, diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c index 77573129d..9989497e7 100644 --- a/clients/simple-dmabuf-egl.c +++ b/clients/simple-dmabuf-egl.c @@ -48,7 +48,6 @@ #include "shared/weston-drm-fourcc.h" #include #include "xdg-shell-client-protocol.h" -#include "fullscreen-shell-unstable-v1-client-protocol.h" #include "linux-dmabuf-unstable-v1-client-protocol.h" #include "weston-direct-display-client-protocol.h" #include "linux-explicit-synchronization-unstable-v1-client-protocol.h" @@ -74,7 +73,6 @@ struct display { struct wl_registry *registry; struct wl_compositor *compositor; struct xdg_wm_base *wm_base; - struct zwp_fullscreen_shell_v1 *fshell; struct zwp_linux_dmabuf_v1 *dmabuf; struct weston_direct_display_v1 *direct_display; struct zwp_linux_explicit_synchronization_v1 *explicit_sync; @@ -680,11 +678,6 @@ create_window(struct display *display, int width, int height, int opts) window->wait_for_configure = true; wl_surface_commit(window->surface); - } else if (display->fshell) { - zwp_fullscreen_shell_v1_present_surface(display->fshell, - window->surface, - ZWP_FULLSCREEN_SHELL_V1_PRESENT_METHOD_DEFAULT, - NULL); } else { assert(0); } @@ -1073,9 +1066,6 @@ registry_handle_global(void *data, struct wl_registry *registry, d->wm_base = wl_registry_bind(registry, id, &xdg_wm_base_interface, 1); xdg_wm_base_add_listener(d->wm_base, &xdg_wm_base_listener, d); - } else if (strcmp(interface, "zwp_fullscreen_shell_v1") == 0) { - d->fshell = wl_registry_bind(registry, - id, &zwp_fullscreen_shell_v1_interface, 1); } else if (strcmp(interface, "zwp_linux_dmabuf_v1") == 0) { if (version < 3) return; @@ -1126,9 +1116,6 @@ destroy_display(struct display *display) if (display->wm_base) xdg_wm_base_destroy(display->wm_base); - if (display->fshell) - zwp_fullscreen_shell_v1_release(display->fshell); - if (display->compositor) wl_compositor_destroy(display->compositor);