diff options
author | Michel Dänzer <mdaenzer@redhat.com> | 2022-06-30 15:16:46 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2022-06-30 15:16:46 +0200 |
commit | 77fb2f56afe7a392f892a9188d442483082bd582 (patch) | |
tree | c8e37fbf0ff54d4c8a415ece023264ffb6e48016 /clients | |
parent | b5467ba2583ad3837844df74d39bbbec3a34a9fc (diff) | |
download | weston-77fb2f56afe7a392f892a9188d442483082bd582.tar.gz |
clients/presentation-shm: Bind to xdg_wm_base version 1
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 <mdaenzer@redhat.com>
Diffstat (limited to 'clients')
-rw-r--r-- | clients/presentation-shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |