From 77fb2f56afe7a392f892a9188d442483082bd582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 30 Jun 2022 15:16:46 +0200 Subject: [PATCH] clients/presentation-shm: Bind to xdg_wm_base version 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was binding to any advertised version, but it can't actually work with version 4 (because it doesn't handle the new configure_bounds event). Other sample clients in the tree are hard-coding version 1, so do the same here. Fixes: 6d9fda715609 ("clients/presentation-shm: use xdg_shell instead of wl_shell") Signed-off-by: Michel Dänzer --- clients/presentation-shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/presentation-shm.c b/clients/presentation-shm.c index d5d73a2a..828cb08d 100644 --- a/clients/presentation-shm.c +++ b/clients/presentation-shm.c @@ -765,7 +765,7 @@ registry_handle_global(void *data, struct wl_registry *registry, } else if (strcmp(interface, "xdg_wm_base") == 0) { d->wm_base = wl_registry_bind(registry, name, - &xdg_wm_base_interface, version); + &xdg_wm_base_interface, 1); } else if (strcmp(interface, "wl_shm") == 0) { d->shm = wl_registry_bind(registry, name, &wl_shm_interface, 1);