summaryrefslogtreecommitdiff
path: root/src/nautilus-toolbar.c
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-06-09 14:48:31 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2016-06-09 15:42:22 +0200
commit899482716a5d009cd53bb6dbe97fc9aa2a5c53f0 (patch)
tree345ff39e834c42eff8b759f99beaec8615af41c6 /src/nautilus-toolbar.c
parentf704cbc29959bf60bb8ecc39b0d843d8679aa8f3 (diff)
downloadnautilus-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.c1
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);