GNOME Bugzilla – Bug 756605
Contextual window menu immediately disappear in top orientation
Last modified: 2015-10-20 13:12:15 UTC
You can press the Meta key and click the right button of the mouse on a window to get its contextual menu. In the case the menu is positioned on top of the cursor, the menu will show up and disappear immediately. Hopefully the window show the issue : https://www.youtube.com/watch?v=y8rCmOHohFY
Created attachment 313681 [details] [review] windowMenu: Ensure the source actor isn't sized 0x0 If the source actor is sized 0x0, the grabHelper will close the menu on button release if the menu ends up flipped because in that case the release event happens when the pointer is neither over the source actor (since it's 0x0) or over the menu actor. A zero sized source actor works for the non-flipped menu case because the menu's actor itself ends up underneath the pointer.
Review of attachment 313681 [details] [review]: OK
Review of attachment 313681 [details] [review]: ::: js/ui/windowMenu.js @@ -215,3 @@ }); - this._sourceActor.set_size(rect.width, rect.height); Or wait - the rect can be bigger than 1x1 in the apps-menu-in-titlebar case
Created attachment 313685 [details] [review] windowMenu: Ensure the source actor isn't sized 0x0 -- Aye, didn't notice that case
Review of attachment 313685 [details] [review]: LGTM
Attachment 313685 [details] pushed as 9c74e22 - windowMenu: Ensure the source actor isn't sized 0x0