[gtk+] popover: raise when showing



commit 5d34cf64a2f5a3c7f58732a500b2c5b2b0ceba47
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]