GNOME Bugzilla – Bug 753798
Tooltip is poping up with window filled with the upper right screen part
Last modified: 2015-08-26 09:21:14 UTC
OS: Debian 8 (LXDE GUI) GTK+ 3 versions: 3.14 & 3.16 Reproduced on the following programs using GTK GUI: 1. Parole 0.8.0. 2. Gnome player.1.0.9 3. Debian document viewer evince 1.2.3. Issue description: When hovering with the cursor on & off the button GTK Widget, a tooltip appears and hide as it should. on some of the times, prior to the right text and background appearing, the rectangular window of the tooltip is filled with the upper right side of the screen (only for a few ms, but noticeable to the naked eye). Issue is not reproduced on non-GTK3 GUI buttons tooltips (e.g. on the Debian file manager PCManFM 1.2.3)
Bug is of the GTK code: ================================================== The Tooltip is shown on the upper left side of the screen (0,0) before it is moved in order to calculate boundaries for the allocation of the window. It is not hide, and only later being moved to it's place. In the meanwhile, the user see it blinking, with garbage inside. I suggested a solution (workaround) of hiding the window after doing, the calculations (quick enough for not being shown on the screen). Thus, the window of tooltip is only shown to user after using the move command. in code I suggest - GTK3+ --> gtktooltip.c --> gtk_tooltip_position(): ======================================================================== After the boundaries calculations: height = gtk_widget_get_allocated_height (GTK_WIDGET (tooltip->current_window)) - border.top - border.bottom; Add the line: gtk_widget_set_visible (GTK_WIDGET (tooltip->current_window), FALSE);
This is duplicate of GTK core issue bug 754109: https://bugzilla.gnome.org/show_bug.cgi?id=754109 *** This bug has been marked as a duplicate of bug 754109 ***