[nautilus/gnome-3-20] toolbar: Attach menu to the toplevel window



commit f84d4319dcd5fcfa460a37dfdb78c93d188e2703
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 feda7be..0a0827c 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -257,6 +257,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]