diff --git a/wayland-backend/CHANGELOG.md b/wayland-backend/CHANGELOG.md index 6715846fc63..fc927dc03af 100644 --- a/wayland-backend/CHANGELOG.md +++ b/wayland-backend/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +### Bugfixes + +- backend/sys: Fix importing external objects with `Backend::manage_object` by + associating the proxy with the correct event queue + ## 0.3.6 -- 2024-07-16 ### Bugfixes diff --git a/wayland-backend/src/sys/client_impl/mod.rs b/wayland-backend/src/sys/client_impl/mod.rs index 24bc920f075..cfb909db9d4 100644 --- a/wayland-backend/src/sys/client_impl/mod.rs +++ b/wayland-backend/src/sys/client_impl/mod.rs @@ -764,7 +764,10 @@ impl InnerBackend { data: Arc, ) -> ObjectId { let mut guard = self.lock_state(); - unsafe { self.manage_object_internal(interface, proxy, data, &mut guard) } + unsafe { + ffi_dispatch!(wayland_client_handle(), wl_proxy_set_queue, proxy, guard.evq); + self.manage_object_internal(interface, proxy, data, &mut guard) + } } /// Start managing a Wayland object.