GNOME Bugzilla – Bug 767446
Unparented context menu when right clicking on navigation buttons
Last modified: 2016-06-09 14:14:47 UTC
Right click on the forward or back icon in the top-left of the screen. At least when running under Wayland, the context menu appears waaay outside the nautilus window, on the other side of the desktop, instead of under the mouse cursor.
Nautilus logs the following message when invoking the menu: Gdk-Message: Window 0x562adfbb2cf0 is a temporary window without parent, application will not be able to position it on screen.
Created attachment 329461 [details] [review] [PATCH] toolbar: Attach menu to the toplevel window 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.
Review of attachment 329461 [details] [review]: Looks good. Is that expected to be done in context menus as well?
(In reply to Carlos Soriano from comment #3) > Looks good. Is that expected to be done in context menus as well? nautilus_pop_up_context_menu() does the gtk_menu_attach_to_widget() already so no need, it works.
You'd want the patch to be pushed in gnome-3-20 as well, or master only and you'll do the cherry-pick next time you release a 3.20 update?
Comment on attachment 329461 [details] [review] [PATCH] toolbar: Attach menu to the toplevel window attachment 329461 [details] [review] has been pushed in master as commit 8994827 - toolbar: Attach menu to the toplevel window
Oh right, it already does it. I was unaware of this tbh... yeah push to 3.20 too please :)
attachment 329461 [details] [review] [review] has been pushed in branch gnome-3-20 as commit f84d431 - toolbar: Attach menu to the toplevel window