summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-02-19 21:52:00 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-06-10 21:20:46 +0000
commitcac00851d454fcfe6b4e9f3353cfa4007f31c21e (patch)
tree3a494e180b3ca69b27f0a088406a67298d330d38
parent2844fde1df83707f3e32ed4ead54b46a476e551d (diff)
input: Migrate ivi_seat to ivi_compositor header
We might need to retrieve the seat in from different places to make it available. Bug-AGL: SPEC-4413 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I76343fe6039ae088356ddc33364e917d67dd414b
-rw-r--r--src/input.c13
-rw-r--r--src/ivi-compositor.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/src/input.c b/src/input.c
index 6f8b7cb..b6b104a 100644
--- a/src/input.c
+++ b/src/input.c
@@ -32,19 +32,6 @@
#include "ivi-compositor.h"
#include "shared/helpers.h"
-struct ivi_shell_seat {
- struct weston_seat *seat;
- struct weston_surface *focused_surface;
-
- bool hide_cursor;
- bool new_caps_sent;
-
- struct wl_listener seat_destroy_listener;
- struct wl_listener caps_changed_listener;
- struct wl_listener keyboard_focus_listener;
- struct wl_listener pointer_focus_listener;
-};
-
static struct ivi_surface *
get_ivi_shell_surface(struct weston_surface *surface)
{
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 3d853e2..fdf2bcb 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -289,6 +289,19 @@ struct ivi_surface {
struct wl_signal signal_advertise_app;
};
+struct ivi_shell_seat {
+ struct weston_seat *seat;
+ struct weston_surface *focused_surface;
+
+ bool hide_cursor;
+ bool new_caps_sent;
+
+ struct wl_listener seat_destroy_listener;
+ struct wl_listener caps_changed_listener;
+ struct wl_listener keyboard_focus_listener;
+ struct wl_listener pointer_focus_listener;
+};
+
struct ivi_shell_client {
struct wl_list link;
char *command;