From 4c691ac8f859e8e7afc684ab274e474f0765459a Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Tue, 15 Oct 2013 15:06:26 +0200 Subject: [PATCH] tooltip: Fix possible wrong placement When showing a tooltip on the edge of a monitor, the tooltip could be wrongly placed and be shown going from one monitor to the next. This happened because the current_window wasn't set visible, and when it wasn't the returned allocated size would be 1, hence wrong calculations. Signed-off-by: Olivier Brunel https://bugzilla.gnome.org/show_bug.cgi?id=698730 --- gtk/gtktooltip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 0914641c5d..c2603a76be 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -1089,6 +1089,7 @@ gtk_tooltip_position (GtkTooltip *tooltip, #define MAX_DISTANCE 32 gtk_widget_realize (GTK_WIDGET (tooltip->current_window)); + gtk_widget_set_visible (GTK_WIDGET (tooltip->current_window), TRUE); tooltip->tooltip_widget = new_tooltip_widget;