[Wayland-bugs] [Bug 780820] [Wayland] Focused window under application first window
mutter (GNOME Bugzilla)
bugzilla at gnome.org
Wed May 10 10:33:51 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=780820
Jonas Ådahl <jadahl at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jadahl at gmail.com
--- Comment #11 from Jonas Ådahl <jadahl at gmail.com> ---
Hmm. I think the issue is that we add the Wayland client window to the stack
too early. The issue seems to be that we
1. Create a new window that cant be shown
2. Adds this new window on top of the stack
3. Closes the currently focused window
4. Finds a good candidate for new focused window
5. Raises that window
6. Show the window created in 1.
If step 6. would happen before 3. we're fine, but not when after.
I see two possible solutions to this:
1) Delay adding the window to the stack until it is "ready" (i.e. has a buffer
attached)
Not sure what funny side effects this may have; does anything assume a window
is always in the stack?
2) Delay creation of the MetaWindow until it's ready (i.e. has a buffer
attached)
Having a content-less MetaWindow has bitten us in the ass plenty of times, so
maybe we should stop having that. It'd require that we duplicate the relevant
state in meta-wayland-xdg-shell.c. meta-wayland-wl-shell.c already does this as
it needs to create/destroy the MetaWindow like crazy because wl_shell is crazy.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170510/0c31ea26/attachment.html>
More information about the wayland-bugs
mailing list