popover: Don't recalculate position if unmapped

This commit is contained in:
Timm Bäder 2018-11-29 08:43:43 +01:00
parent 5907ff694f
commit f598836d6c

View File

@ -1175,7 +1175,7 @@ gtk_popover_update_position (GtkPopover *popover)
gint i, j;
gint best;
if (!priv->window)
if (!priv->window || !gtk_widget_get_mapped (widget))
return;
gtk_widget_get_preferred_size (widget, NULL, &req);