From 98d215635e8f63154a6499dd45fcd8f62ebf37d4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 28 Oct 2011 13:12:02 -0700 Subject: [PATCH] tooltip: Don't use deprecated API --- gtk/gtktooltip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 3ceca8b888..5cff68f6b2 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -1228,6 +1228,7 @@ gtk_tooltip_show_tooltip (GdkDisplay *display) } else { + GdkDevice *device; gint tx, ty; window = tooltip->last_window; @@ -1235,7 +1236,9 @@ gtk_tooltip_show_tooltip (GdkDisplay *display) if (!GDK_IS_WINDOW (window)) return; - gdk_window_get_pointer (window, &x, &y, NULL); + device = gdk_device_manager_get_client_pointer (gdk_display_get_device_manager (display)); + + gdk_window_get_device_position (window, device, &x, &y, NULL); gdk_window_get_root_coords (window, x, y, &tx, &ty); tooltip->last_x = tx;