GNOME Bugzilla – Bug 733887
[PATCH] GtkTooltip: jerky tooltips
Last modified: 2014-07-28 22:15:01 UTC
Created attachment 281885 [details] [review] fix jerky tooltips Start gtk+/tests/testtooltips and hover over the tooltip containers. The tooltips flash up briefly in the upper left corner of the screen, before being jerkily moved to their proper position under the mouse pointer. There is a noticeable delay between the first appearance of a tooltip and its subsequent repositioning, so the tooltips appear to jump back and forth. Analysis: In gtk_tooltip_position() (gtk/gtktooltip.c:1002 in the current git version of gtk+) the function gtk_widget_set_visible() is called at the beginning, before the tooltip display coordinates have been calculated. On X11/Fedora, this causes a transparent tooltip window to be rendered in the upper left corner of the screen, which manifests itself as a brief screen flicker. Shortly afterwards, the tooltip is moved to its correct position by gtk_window_move(), followed by gtk_widget_show(). It is unnecessary to call gtk_widget_set_visible() at the beginning of the function. The tooltip is properly rendered by gtk_widget_show() at the end, after its display coordinates have been computed.
*** This bug has been marked as a duplicate of bug 698730 ***