mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
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:
parent
131abe28a4
commit
a0ff35f032
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user