Merge branch '1371-flickering-tooltips-if-no-mouse-cursor-theme-loaded-gtk3' into 'gtk-3-24'

Tooltip: Fix the used cursor size if 0 in Settings

See merge request GNOME/gtk!374
This commit is contained in:
Matthias Clasen 2018-10-16 23:20:25 +00:00
commit 00034c00be

View File

@ -898,6 +898,9 @@ gtk_tooltip_position (GtkTooltip *tooltip,
"gtk-cursor-theme-size", &cursor_size,
NULL);
if (cursor_size == 0)
cursor_size = gdk_display_get_default_cursor_size (display);
if (device)
anchor_rect_padding = MAX (4, cursor_size - 32);
else