Commit 45d98d10 authored by Benjamin Otte's avatar Benjamin Otte

tooltip: Don't use deprecated APIs

parent a5f493bf
......@@ -532,9 +532,13 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display)
gint x, y;
GdkWindow *window;
GdkEvent event;
GdkDevice *device;
/* Trigger logic as if the mouse moved */
window = gdk_display_get_window_at_pointer (display, &x, &y);
device = gdk_device_manager_get_client_pointer (gdk_display_get_device_manager (display));
window = gdk_display_get_window_at_device_position (display,
device,
&x, &y);
if (!window)
return;
......
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