[nautilus] toolbar: Attach menu to the toplevel window



commit 899482716a5d009cd53bb6dbe97fc9aa2a5c53f0
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Thu Jun 9 14:48:31 2016 +0200

    toolbar: Attach menu to the toplevel window
    
    So that the menu doesn't show at random places under Wayland which
    expects all subsurfaces to have a parent surface.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767446

 src/nautilus-toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 02e204b..b5ab60a 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -255,6 +255,7 @@ show_menu (NautilusToolbar *self,
                break;
        }
 
+        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (window), NULL);
         gtk_menu_popup (GTK_MENU (menu), NULL, NULL,
                        (GtkMenuPositionFunc) menu_position_func, widget,
                         button, event_time);


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