From cac00851d454fcfe6b4e9f3353cfa4007f31c21e Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Sat, 19 Feb 2022 21:52:00 +0200 Subject: [PATCH] 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 --- src/input.c | 13 ------------- src/ivi-compositor.h | 13 +++++++++++++ 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; -- 2.16.6