Interesting. It appears this might be a shell/Mir/MirAL bug. The problem is that Mir shells are sending focus events to surfaces that never receive focus events on normal X desktops. Sending a focus event to a menu that has specified never to receive focus (or is override redirect) is not directly a problem. However it creates a big problem indirectly because an unfocus of the app window happens before a focus of the menu. It's actually the unfocus of the main app window that makes Firefox think that it should then close its menu (or utility bar) immediately. So menus pop up and then vanish instantly, because the app window has lost focus (same kind of issue as recent Unity8 bug 1662733).
The only way to work around this in Xmir is to remove the focus logic we did for the OSK. Then the app window never receives unfocus events and it won't close the menu prematurely. I may write a workaround to let you do that but it's not a solution... A proper solution requires that Mir surfaces (like some menus) should be able to flag never to send them focus events. And thus when menus open, the app window never receives an unfocus event. This could also solve Unity8 bug 1662733. Seems like we need some client API work done on the Mir side before the Xmir side can be fixed. ** No longer affects: miral (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xorg-server in Ubuntu. https://bugs.launchpad.net/bugs/1625846 Title: Xmir -rootless: Firefox menus pop up then close right away Status in Mir: New Status in MirAL: New Status in xorg-server package in Ubuntu: Triaged Bug description: To reproduce: 1) Open firefox on a rootless Xmir 2) Right click or attempt to open the menu on the top right Expected: Menu to open Result: Menu pops up then closes right away. I think this is an expected bug, but dont remember the bug# soo figure would make one here :) To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1625846/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp