[PATCH weston 1/3] ivi-shell-user-interface: ignore all but first seat

Pekka Paalanen ppaalanen at gmail.com
Tue May 10 14:20:37 UTC 2016


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

This client should support binding to multiple seats, but as it does
not, make a quick and dirty fix to ignore all seats beyond the first
one.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 clients/ivi-shell-user-interface.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c
index 0a24ed6..06b79a2 100644
--- a/clients/ivi-shell-user-interface.c
+++ b/clients/ivi-shell-user-interface.c
@@ -591,6 +591,10 @@ registry_handle_global(void *data, struct wl_registry *registry, uint32_t name,
 			wl_registry_bind(registry, name, &wl_shm_interface, 1);
 		wl_shm_add_listener(p_wlCtx->wlShm, &shm_listenter, p_wlCtx);
 	} else if (!strcmp(interface, "wl_seat")) {
+		/* XXX: should be handling multiple wl_seats */
+		if (p_wlCtx->wlSeat)
+			return;
+
 		p_wlCtx->wlSeat =
 			wl_registry_bind(registry, name, &wl_seat_interface, 1);
 		wl_seat_add_listener(p_wlCtx->wlSeat, &seat_Listener, data);
-- 
2.7.3



More information about the wayland-devel mailing list