xwayland: Fix a race condition when setting up input devices

Graphics / X.Org / X.Org Server - Povilas Kanapickas [radix.lt] - 4 December 2021 15:55 UTC

The compositor may send us wl_seat and its capabilities before sending e.g. relative_pointer_manager or pointer_gesture interfaces. This would result in devices being created in capabilities handler, but listeners not, because the interfaces weren't available at the time. So we manually attempt to setup listeners again.

0146fd6d3 xwayland: Fix a race condition when setting up input devices
hw/xwayland/xwayland-input.c | 76 ++++++++++++++++++++++++++++++++++----------
1 file changed, 59 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share