summaryrefslogtreecommitdiff
path: root/src/backends/meta-remote-desktop.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2019-10-02 14:40:40 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-01-30 18:02:14 +0100
commit1c689b83f94a4457592293394cf8516ada6b1fc7 (patch)
tree3e7c0fddcd57da92f80874e64cf600d8f0506e5a /src/backends/meta-remote-desktop.c
parent8d0527f674fd6024b76c84e2f8a129d5c0ecef1b (diff)
downloadmutter-1c689b83f94a4457592293394cf8516ada6b1fc7.tar.gz
clutter: Move virtual device management to ClutterSeat
A11y in general may be considered a per-seat feature. https://gitlab.gnome.org/GNOME/mutter/merge_requests/852
Diffstat (limited to 'src/backends/meta-remote-desktop.c')
-rw-r--r--src/backends/meta-remote-desktop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/meta-remote-desktop.c b/src/backends/meta-remote-desktop.c
index d741dccd8..b94055885 100644
--- a/src/backends/meta-remote-desktop.c
+++ b/src/backends/meta-remote-desktop.c
@@ -234,14 +234,14 @@ meta_remote_desktop_new (MetaDbusSessionWatcher *session_watcher)
static MetaRemoteDesktopDeviceTypes
calculate_supported_device_types (void)
{
- ClutterDeviceManager *device_manager =
- clutter_device_manager_get_default ();
+ ClutterBackend *backend = clutter_get_default_backend ();
+ ClutterSeat *seat = clutter_backend_get_default_seat (backend);
ClutterVirtualDeviceType device_types;
MetaRemoteDesktopDeviceTypes supported_devices =
META_REMOTE_DESKTOP_DEVICE_TYPE_NONE;
device_types =
- clutter_device_manager_get_supported_virtual_device_types (device_manager);
+ clutter_seat_get_supported_virtual_device_types (seat);
if (device_types & CLUTTER_VIRTUAL_DEVICE_TYPE_KEYBOARD)
supported_devices |= META_REMOTE_DESKTOP_DEVICE_TYPE_KEYBOARD;