tooltip: Stop using gdk_display_get_default_cursor_size

It makes more sense to use the actual cursor theme size here.
This commit is contained in:
Matthias Clasen 2018-01-16 23:20:12 -05:00
parent 3fa0d4dad7
commit 35c78a995e

View File

@ -708,7 +708,9 @@ gtk_tooltip_position (GtkTooltip *tooltip,
/* Position the tooltip */
cursor_size = gdk_display_get_default_cursor_size (display);
g_object_get (gtk_widget_get_settings (GTK_WIDGET (tooltip->current_window)),
"gtk-cursor-theme-size", &cursor_size,
NULL);
/* Try below */
x = bounds.x + bounds.width / 2 - width / 2;