<div dir="ltr"><div><div>No, you don't.<br><br></div>You cannot possibly reuse the saved settings on different OSes with different output layouts. On Windows, there's a taskbar at the bottom (yes, it's technically configurable, I know). On OS X, there's a menu bar at the top. You have no idea what windows are around you and where they are. You don't know where Firefox is, or where to place your window so that it doesn't overlap. You don't even know which monitor the cursor was on, so if you wanted to pop up your dialog in the middle of the screen so that the user didn't have to cross two monitors to get to it, you could position it OK.<br>
<br>In isolation, you could get away with things. The user has multiple apps open, the 
desktops have different layouts, the UI conventions are different 
across platforms, and you're not sure where the monitors are. You cannot know these things.</div><div><br></div><div>The issue with the "the window should be placed here" hint you suggest is that you say it's completely valid for me to ignore it, but you will complain if my compositor ignores it, because your requirement is "the window needs to be placed here". Well, buddy, there's a taskbar in the way there. I can't place it there even if you wanted me to. And thus I will push your window down, and your toolbox is now overlapping the primary window by ten pixels.<br>
</div><div><br>It sounds like you have a highly technical workstation platform that has a complex, professional tool involving multiple windows, and you are fully aware of your environment. You can keep using X11 for this use case if you want.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 3:48 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 06/30/2014 11:36 PM, Pekka Paalanen wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One idea was that the client can ask the compositor to create a<br>
cookie (a blob) that the client can save, and when restoring the<br>
window, give the cookie back to the compositor to recall the position<br>
and size, subject to the compositor checking if it makes sense<br>
(e.g. avoid putting windows in unreachable places) and adjusting as<br>
necessary. It is a blob rather than (x,y,w,h,a,r,g,...) tuple, so that<br>
different compositors can save all the compositor-specific data too,<br>
like rotation angles. Also, the blob is to prevent clients from abusing<br>
the recall mechanism to position windows in global coordinates. But<br>
that's just one idea.<br>
</blockquote>
<br></div>
That solution cannot work as we need the ability to reuse the saved settings on Windows and X and OS/X and also on different Wayland compositors.<div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>