summaryrefslogtreecommitdiff
path: root/src/backends/meta-backend-private.h
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2021-03-12 08:31:50 +0100
committerMarge Bot <marge-bot@gnome.org>2021-03-13 18:56:21 +0000
commit6ecd911dd0fe370c93486f41798f8f36a70e2187 (patch)
treed1c5170d93948d00787a3791928c8cf26dd08358 /src/backends/meta-backend-private.h
parent16b63451a36bedf941c1325e67c0f4a3287fe8e6 (diff)
downloadmutter-6ecd911dd0fe370c93486f41798f8f36a70e2187.tar.gz
backend: Take over seat ownership from the clutter backend
Having the clutter backend owning and managing creates complication for implementing graceful shutdown, so move it to the real backend. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775>
Diffstat (limited to 'src/backends/meta-backend-private.h')
-rw-r--r--src/backends/meta-backend-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h
index 0c328ffcc..b930462b2 100644
--- a/src/backends/meta-backend-private.h
+++ b/src/backends/meta-backend-private.h
@@ -71,6 +71,9 @@ struct _MetaBackendClass
GError **error);
MetaInputSettings * (* get_input_settings) (MetaBackend *backend);
+ ClutterSeat * (* create_default_seat) (MetaBackend *backend,
+ GError **error);
+
gboolean (* grab_device) (MetaBackend *backend,
int device_id,
uint32_t timestamp);
@@ -122,6 +125,8 @@ void meta_backend_init_wayland (MetaBackend *backend);
ClutterBackend * meta_backend_get_clutter_backend (MetaBackend *backend);
+ClutterSeat * meta_backend_get_default_seat (MetaBackend *bakcend);
+
MetaIdleMonitor * meta_backend_get_idle_monitor (MetaBackend *backend,
ClutterInputDevice *device);
void meta_backend_foreach_device_monitor (MetaBackend *backend,