I am aware of the above ICCCM spec and that Xmir doesn't follow it
fully, but that's also possibly not the issue here. The issue with
supporting the Locally Active focus model is that apps want the ability
to either focus their popups explicitly or not at all:

https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.10

In both cases the shell must not implicitly change the focus while the
user is interacting with Firefox, but Mir/Unity8 is doing just that. And
the unfocus event on the Firefox main window is tricking Firefox into
closing the popup (and menus) immediately.

So we apparently have no way out other than to ensure that the SHELL
does not ever focus certain popups (as chosen by the toolkit). Xmir
already has all the information it needs to make this decision and is
only lacking a Mir client API to communicate it to the shell.

Fortunately our Unity8 WM design already provides means for us to do
this, and we have not yet implemented it in Mir (comments 16-17).

Also remember that Xmir ignoring focus/unfocus events to work around
such bugs is unacceptable, because that leads to the OSK either not
appearing or never disappearing.

-- 
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 Canonical System Image:
  Confirmed
Status in Mir:
  Triaged
Status in MirAL:
  Confirmed
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 :)

  *NOTE*: similar cause, but different usecase to lp:1662733

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625846/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to