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 Ubuntu-X,
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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1625846/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to