diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-31 16:16:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-31 16:17:08 -0400 |
commit | 058986714c5e21b91d3a4d85a410ee2e940394e0 (patch) | |
tree | e084bc4cd6fa4036f0b5b3b5edd17279561cabf1 /gtk/gtktooltip.c | |
parent | 91bbce3fefacc35a0ef7ff234bd296e8e40d1a02 (diff) | |
download | gtk+-058986714c5e21b91d3a4d85a410ee2e940394e0.tar.gz |
tooltips: Don't use a cursor_size of 0
This leads to flickering tooltips.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r-- | gtk/gtktooltip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index f5c155c2a3..f309fc7683 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -603,6 +603,9 @@ gtk_tooltip_position (GtkTooltip *tooltip, "gtk-cursor-theme-size", &cursor_size, NULL); + if (cursor_size == 0) + cursor_size = 16; + if (device) anchor_rect_padding = MAX (4, cursor_size - 32); else |