<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 30, 2013 at 10:25 AM, Todd Showalter <span dir="ltr"><<a href="mailto:todd@electronjump.com" target="_blank">todd@electronjump.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Tue, Apr 30, 2013 at 9:26 AM, Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>> wrote:<br>

<br>
> unfortunately that is not how Wayland works at all. All clients are<br>
> isolated from the start, regardless how they are spawned. The idea<br>
> might be ok, but concepts and protocol design will be very different.<br>
<br>
</div>    I had a feeling that might be the case.<br>
<div class="im"><br>
> Doesn't really help that I've never used Steam, nor know what Big<br>
> Picture is. But I do have a PS3 at home! :-)<br>
<br>
</div>    "Big Picture Mode" (let's call it BP for the purposes of this<br>
description) in Steam is a full-screen program that shows things like<br>
your game list, and is basically a glorified game launcher with some<br>
ancillary functionality like updating and installing games, and store<br>
access.  The important thing for this discussion is that if you are<br>
playing a game you launched from BP, pressing the home button<br>
backgrounds the game and foregrounds BP.  That is, you return to BP<br>
rather than the desktop.<br>
<br>
    The process is similar to what happens with the home button on the<br>
PS3; the game drops to the background, and the OS puts up an overlay.<br>
Press the home button again to dismiss the overlay and return to the<br>
game.<br>
<br>
    I'm not going to argue that this is essential behavior; I don't<br>
think it is.  It may be desirable in some cases, but it might also be<br>
desirable to treat the home button totally separately, maybe have it<br>
bring up a gamepad config screen or something if that makes sense.<br>
The main place it's desirable is in the case of living room PCs, where<br>
people will tend to want to be running things like games and movie<br>
players fullscreen, so a standard "get me back to the OS" button is a<br>
useful abstraction.<br></blockquote><div><br><div>I think the best way to do it is to simply treat it like an 
available hotkey.  If the user wants to configure the home button to do 
something special at the compositor level they can do so.  This may include bringing up the window switcher as pq said, going to desktop, going to the media center, etc.  Otherwise, it gets passed to the client as a regular 
button event.<br><br></div>As far as steam and BigPicture goes, I 
think they run some sort of an overlay anyway so that their in-game chat
 etc. works.  Whatever they use to handle that could also handle the 
home button.  I'm not sure what they'll use to do that in the wayland 
world.  They may have some sort of embedded compositor or just a 
client-side library that all their games include.  Whatever way they do 
it, they can handle the home button through that.<br><br></div><div>--Jason Ekstrand<br></div></div></div></div>