<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Wayland] Focused window under application first window"
href="https://bugzilla.gnome.org/show_bug.cgi?id=780820#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Wayland] Focused window under application first window"
href="https://bugzilla.gnome.org/show_bug.cgi?id=780820">bug 780820</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>(In reply to Jonas Ã…dahl from <a href="show_bug.cgi?id=780820#c11">comment #11</a>)
<span class="quote">> 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.</span >
This is exactly it!
<span class="quote">> 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)</span >
There are comments in _meta_window_shared_new() that seem to imply that some
apps would misbehave otherwise, but I reckon these are X11 clients, so if we
implement this for Wayland only (as commit <a href="https://git.gnome.org/browse/mutter/commit/?id=cdac4d0">cdac4d0</a> and 0912013 did before), we
might be fine.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>