Commit 98d21563 authored by Benjamin Otte's avatar Benjamin Otte

tooltip: Don't use deprecated API

parent 5ada0fc3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment