diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2016-05-09 17:13:50 +0300 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2016-05-12 11:49:03 +0300 |
commit | 6a20950ea2b12ad93a6299895db269e6de7e05ae (patch) | |
tree | 29028618633e00caaaf25813e43d6e511823dbc3 /clients | |
parent | 5375384545e4640acc342577798d30f632f5fc60 (diff) | |
download | weston-6a20950ea2b12ad93a6299895db269e6de7e05ae.tar.gz |
ivi-shell-user-interface: ignore all but first seat
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@collabora.co.uk>
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'clients')
-rw-r--r-- | clients/ivi-shell-user-interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c index 0a24ed6f..06b79a22 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); |