From: Marius Vlad Date: Sat, 19 Feb 2022 19:52:00 +0000 (+0200) Subject: input: Migrate ivi_seat to ivi_compositor header X-Git-Tag: 13.93.0~10 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=cac00851d454fcfe6b4e9f3353cfa4007f31c21e;p=src%2Fagl-compositor.git 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 Change-Id: I76343fe6039ae088356ddc33364e917d67dd414b --- 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;