[gnome-shell/wip/carlosg/clutter-seat: 90/96] st: Use ClutterSeat to get pointer device
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/clutter-seat: 90/96] st: Use ClutterSeat to get pointer device
- Date: Fri, 10 Jan 2020 16:39:25 +0000 (UTC)
commit 1d89c16d7bafdfc7f27ec97f4829f6fe8c9fcfcd
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 5 12:32:40 2019 +0200
st: Use ClutterSeat to get pointer device
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/760
src/st/st-widget.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 26eccee1f4..b402593687 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -1897,12 +1897,12 @@ st_widget_set_hover (StWidget *widget,
void
st_widget_sync_hover (StWidget *widget)
{
- ClutterDeviceManager *device_manager;
ClutterInputDevice *pointer;
ClutterActor *pointer_actor;
+ ClutterSeat *seat;
- device_manager = clutter_device_manager_get_default ();
- pointer = clutter_device_manager_get_device (device_manager, VIRTUAL_CORE_POINTER_ID);
+ seat = clutter_backend_get_default_seat (clutter_get_default_backend ());
+ pointer = clutter_seat_get_pointer (seat);
pointer_actor = clutter_input_device_get_pointer_actor (pointer);
if (pointer_actor && clutter_actor_get_reactive (CLUTTER_ACTOR (widget)))
st_widget_set_hover (widget, clutter_actor_contains (CLUTTER_ACTOR (widget), pointer_actor));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]