summaryrefslogtreecommitdiffstats
path: root/src/desktop.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-09-17 00:24:31 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-30 13:43:12 +0000
commit3ba840cd3a5a2fa1966b01ef286de0347e64aa46 (patch)
treeb5916f33b400b73b561e7c8d4ace407b03a3a98d /src/desktop.c
parentbe8288cc5b127074fae6e2da052d6cd5cd623ae2 (diff)
input: Add basic seat handling
This allows for basic input handling, to better customize how we handle out seat capabilities to the client. One useful outcome of this is the fact that we re-advertise to the client that in some situations there might not be a pointer available. That should let the client know as to avoid creating a pointer surface. Bug-AGL: SPEC-3591 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I4624a956264e9fa12a86da005944e9b426dde10a
Diffstat (limited to 'src/desktop.c')
-rw-r--r--src/desktop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop.c b/src/desktop.c
index 0fca2fd..58d2887 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -99,6 +99,9 @@ desktop_surface_added(struct weston_desktop_surface *dsurface, void *userdata)
if ((active_output = ivi_layout_find_with_app_id(app_id, ivi)))
ivi_set_pending_desktop_surface_remote(active_output, app_id);
+ /* reset any caps to make sure we apply the new caps */
+ ivi_seat_reset_caps_sent(ivi);
+
if (ivi->shell_client.ready) {
ivi_check_pending_desktop_surface(surface);
weston_log("Added surface %p, app_id %s, role %s\n", surface,