<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
</div></div>This is definitely not right. It is not the compositor's job to cut out<br>
and not show an arbitrary part of the surface. It is the client's job<br>
to not render anything it does not want to show.<br>
<br>
You also break the protocol by lying to client about the dimensions,<br>
and in doing so, you make assumptions that are not based on any<br>
specification, just like you mentioned yourself.<br>
<br>
This must be done in toytoolkit, not here.<br>
<br>
<br>
Sorry,<br>
pq<br>
</blockquote></div><br>The problem I'm having is trying to work out how to do snapping for resize or move requests on maximized surfaces. The patch that works in toytoolkit would require even more dancing in shell to implement snapping. The problem is that the shell doesn't know some specifics about the surface such as input region and/or theme margin, in this case the shadow margin. I think ideally you'd be able to request these specifics from the client. It would also be nice to be able to know the titlebar height so in the snap-off case we can place the surface to where the middle of the titlebar is under the grab cursor. Would it make sense to be able to request certain (theme) attributes such as these from the client?<br>
<br><br>Regards,<br><br>Scott<br>