From 5d34cf64a2f5a3c7f58732a500b2c5b2b0ceba47 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 24 Mar 2016 11:32:24 +0100 Subject: [PATCH] popover: raise when showing Some other widget might have mapped and raised another child window of the toplevel in the meantime, causing the popover window to be covered. Raise the popover window to avoid the issue. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=763627 --- gtk/gtkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 744966885b..83ad2164ac 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -7623,7 +7623,7 @@ gtk_window_restack_popovers (GtkWindow *window) GtkWindowPopover *popover = link->data; link = link->next; - if (popover->window && gdk_window_is_visible (popover->window)) + if (popover->window) gdk_window_raise (popover->window); } } @@ -12398,6 +12398,7 @@ _gtk_window_raise_popover (GtkWindow *window, g_list_free (link); break; } + gtk_window_restack_popovers (window); } static GtkWidget *inspector_window = NULL;