From 3d516449d401d9109b3e2022f5e1f44c61c5f6d1 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 15 Dec 2015 23:17:37 +0100 Subject: [PATCH] GtkTooltip: Avoid gdk_device_manager_get_client_pointer() It's now deprecated --- gtk/gtktooltip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 4410af0a70..5ccd83249b 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -439,7 +439,7 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display) GdkDevice *device; /* Trigger logic as if the mouse moved */ - device = gdk_device_manager_get_client_pointer (gdk_display_get_device_manager (display)); + device = gdk_seat_get_pointer (gdk_display_get_default_seat (display)); window = gdk_device_get_window_at_position (device, &x, &y); if (!window) return; @@ -1122,7 +1122,7 @@ gtk_tooltip_show_tooltip (GdkDisplay *display) if (!GDK_IS_WINDOW (window)) return; - device = gdk_device_manager_get_client_pointer (gdk_display_get_device_manager (display)); + device = gdk_seat_get_pointer (gdk_display_get_default_seat (display)); gdk_window_get_device_position (window, device, &x, &y, NULL);