mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 04:02:36 +00:00
core: Replace ClutterDeviceManager usage in favor of ClutterSeat
https://gitlab.gnome.org/GNOME/mutter/merge_requests/852
This commit is contained in:
parent
6dfd2ffcef
commit
7644ddeddc
@ -8117,12 +8117,12 @@ mouse_mode_focus (MetaWindow *window,
|
|||||||
static gboolean
|
static gboolean
|
||||||
window_has_pointer_wayland (MetaWindow *window)
|
window_has_pointer_wayland (MetaWindow *window)
|
||||||
{
|
{
|
||||||
ClutterDeviceManager *dm;
|
ClutterSeat *seat;
|
||||||
ClutterInputDevice *dev;
|
ClutterInputDevice *dev;
|
||||||
ClutterActor *pointer_actor, *window_actor;
|
ClutterActor *pointer_actor, *window_actor;
|
||||||
|
|
||||||
dm = clutter_device_manager_get_default ();
|
seat = clutter_backend_get_default_seat (clutter_get_default_backend ());
|
||||||
dev = clutter_device_manager_get_core_device (dm, CLUTTER_POINTER_DEVICE);
|
dev = clutter_seat_get_pointer (seat);
|
||||||
pointer_actor = clutter_input_device_get_pointer_actor (dev);
|
pointer_actor = clutter_input_device_get_pointer_actor (dev);
|
||||||
window_actor = CLUTTER_ACTOR (meta_window_get_compositor_private (window));
|
window_actor = CLUTTER_ACTOR (meta_window_get_compositor_private (window));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user