summaryrefslogtreecommitdiffstats
path: root/src/ivi-compositor.h
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/ivi-compositor.h
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/ivi-compositor.h')
-rw-r--r--src/ivi-compositor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 4506a5a..4708b5d 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -53,6 +53,7 @@ struct ivi_compositor {
struct wl_listener heads_changed;
bool init_failed;
+ bool hide_cursor;
/*
* Options parsed from command line arugments.
@@ -85,6 +86,7 @@ struct ivi_compositor {
struct wl_list surfaces; /* ivi_surface.link */
struct weston_desktop *desktop;
+ struct wl_listener seat_created_listener;
struct ivi_policy *policy;
struct wl_list pending_surfaces;
@@ -233,6 +235,7 @@ struct ivi_surface {
struct weston_view *view;
struct wl_list link;
+ int focus_count;
struct {
enum ivi_surface_flags flags;
@@ -380,4 +383,10 @@ shell_advertise_app_state(struct ivi_compositor *ivi, const char *app_id,
void
ivi_screenshooter_create(struct ivi_compositor *ivi);
+void
+ivi_seat_init(struct ivi_compositor *ivi);
+
+void
+ivi_seat_reset_caps_sent(struct ivi_compositor *ivi);
+
#endif