diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2016-06-09 14:48:31 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2016-06-09 15:42:22 +0200 |
commit | 899482716a5d009cd53bb6dbe97fc9aa2a5c53f0 (patch) | |
tree | 345ff39e834c42eff8b759f99beaec8615af41c6 /src/nautilus-toolbar.c | |
parent | f704cbc29959bf60bb8ecc39b0d843d8679aa8f3 (diff) | |
download | nautilus-899482716a5d009cd53bb6dbe97fc9aa2a5c53f0.tar.gz |
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
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r-- | 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 02e204b52..b5ab60afb 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); |