<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On 8 September 2014 20:08, 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">I'm probably being stupid, but I still can't figure out how it chooses the output for a NON-maximized surface. I would think that should use exactly the same algorithm as maximized does here?<span class=""><br>
<br></span></blockquote><div><br></div><div>Each surface has assigned output it is currently mapped on (so it can be NULL). This surface->output is set by weston_surface_assign_output which is called by weston_view_assign_output (and that by weston_surface_update_transform) or by surface_unmap. Atm, weston_surface_assign_output assigns the output on which the surface covers the biggest area + it sets a bitfield with all the outputs the surface is (at least partially) mapped on. This setting is done by Weston core (in src/compositor.c).<br><br>I don't think it should use the same algorithm, because then we can just use surface->output instead of shsurf->output, right? If I understand it correctly, the shsurf->output should be kind of 'chosen' by user (like in xdg_surface_set_fullscreen request or so) - it is just the output the user expects the surface is on.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On 09/08/2014 03:34 AM, Marek Chalupa wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
shsurf->output is the output that user expects the shell surface<br>
is on. When maximizing, we don't have any explicit setting of the output<br>
like in the case of fullscreening, so set the output to the one that<br>
the surface is currently on. In the case that the surface is not mapped yet,<br>
(if it ever happens) use the same heuristics as for fullscreening.<br>
</blockquote></span>
______________________________<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>
</blockquote></div><br></div><div class="gmail_extra">Cheers,<br>Marek<br></div></div>