window: Avoid rising the window of already shown popovers

This breaks stacking, as popovers are repositioned sort of frequently
(even more after show/hide animations).

https://bugzilla.gnome.org/show_bug.cgi?id=750741
This commit is contained in:
Carlos Garnacho 2015-06-12 15:03:41 +02:00
parent 131abe28a4
commit a0ff35f032

View File

@ -11905,15 +11905,10 @@ _gtk_window_set_popover_position (GtkWindow *window,
data->rect = *rect;
data->pos = pos;
if (gtk_widget_is_visible (popover))
if (gtk_widget_is_visible (popover) && !data->window)
{
if (!data->window)
{
popover_realize (popover, data, window);
popover_map (popover, data);
}
else
gdk_window_raise (data->window);
popover_realize (popover, data, window);
popover_map (popover, data);
}
if (need_resize)