[gtk+/gtk-3-20] popover: raise when showing



commit db241d36e24970d7f84fcbfe4af5baa6eb4e65e0
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Thu Mar 24 11:32:24 2016 +0100

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 7449668..83ad216 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]