input: Migrate ivi_seat to ivi_compositor header 91/27591/2
authorMarius Vlad <marius.vlad@collabora.com>
Sat, 19 Feb 2022 19:52:00 +0000 (21:52 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 10 Jun 2022 21:20:46 +0000 (21:20 +0000)
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

src/input.c
src/ivi-compositor.h

index 6f8b7cb..b6b104a 100644 (file)
 #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)
 {
index 3d853e2..fdf2bcb 100644 (file)
@@ -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;