<div dir="ltr">Well, it can't be a state enum, because that's from compositor to client. We certainly could make it a small extension as part of gtk_shell, though.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 12:02 AM, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p dir="ltr"><br>
On Sep 25, 2014 3:04 PM, "Jasper St. Pierre" <<a href="mailto:jstpierre@mecheye.net" target="_blank">jstpierre@mecheye.net</a>> wrote:<br>
><br>
><br>
><br>
> On Thu, Sep 25, 2014 at 3:58 PM, Bill Spitzak <<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>> wrote:<br>
>><br>
>> On 09/25/2014 01:57 PM, Jasper St. Pierre wrote:<br>
>><br>
>>> <a href="https://github.com/magcius/weston/commit/c1e5a846f4f57400bca1262111f9793e451c5b49" target="_blank">https://github.com/magcius/weston/commit/c1e5a846f4f57400bca1262111f9793e451c5b49</a><br>
>><br>
>><br>
>> That patch has nothing to do with what is needed.<br>
>><br>
>> You don't need a "modal window type". This is trivial for a client to do by just pretending that whatever keystrokes it gets go to the "modal" window even if the compositor sends them to a different window.<br>
>><br>
>> What is needed is a non-flickering and atomic method of creating that modal window atop the main one and keeping it there. That requires a parent, not a "modal" flag. (well actually it does not require a parent if instead there was a way to atomically map and rearrange a set of surfaces, but I think the parent will be much easier and matches what programmers are familiar with).<br>
><br>
><br>
> You mean like the existing set_parent request that has been there since xdg-shell has landed?<br>
><br>
> <a href="http://cgit.freedesktop.org/wayland/weston/tree/protocol/xdg-shell.xml#n140" target="_blank">http://cgit.freedesktop.org/wayland/weston/tree/protocol/xdg-shell.xml#n140</a> </p>
</div></div><p dir="ltr">If parenting isn't sufficient, it would be easy enough to add a mutter extension for modal windows in the form of another state enum. If it turns out to be a well-defined thing other compositors want, we can think about moving it to core. In any case, it should be trivial from a protocol point of view.</p><span class="HOEnZb"><font color="#888888">
</font></span><p dir="ltr"><span class="HOEnZb"><font color="#888888">><br>
> -- <br>
> Jasper</font></span><span class=""><br>
><br>
> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
><br>
</span></p>
</blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>