Clients reading their surface position on screen

Christopher James Halse Rogers chris at cooperteam.net
Tue Aug 12 09:27:06 UTC 2014


Right, but you might notice that interacting with transformed windows has been an open feature request on the X server for a decade, and this sort of API is one of the reasons for that :).

Again, I'm ok with it as long as applications don't end up depending on it.

-----Original Message-----
From: "Gerry Boland" <gerry.boland at canonical.com>
Sent: ‎12/‎08/‎2014 18:40
To: "Christopher James Halse Rogers" <chris at cooperteam.net>
Cc: "mir-devel at lists.ubuntu.com" <mir-devel at lists.ubuntu.com>
Subject: Re: Clients reading their surface position on screen

On 12/08/14 03:33, Christopher James Halse Rogers wrote:
> On Tue, Aug 12, 2014 at 3:09 AM, Gerry Boland
> <gerry.boland at canonical.com> wrote:
> > Personally I don't like the idea of clients being able to ask for their
> > on-screen position - really there's only a couple of valid use-cases,
> > which are very special. All apps don't need this.
> >
> > Sure the other side of the argument is "what is the harm?" - but IMO it
> > could offer that tiny bit more information to help a malicious app
> > misbehave - so I'd rather play it safe.
>
> My primacy concern is not about malicious apps. I'm concerned about apps
> relying on data that the compositor may not be able to provide. It's
> entirely possible that there *isn't* a correct answer for “where is my
> surface on screen”, and any attempt to use such information will result
> in incorrect behaviour.
>
> If we expose this to Qt it'll appear to work (almost) all the time under
> Unity8, apps will find some reason to depend on this working, and then
> when we - or someone else - wants to do something funky we'll find that
> we can't because it breaks clients.
>
This is what is happening right now with X11 though and there's not been any complaints. Since it's really only AP which needs this, it's AP's fault if they do something funky and it breaks.
-G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/mir-devel/attachments/20140812/9470c298/attachment.html>


More information about the Mir-devel mailing list