Re: [PATCH] wip: per-pixel surface picking

2012-02-10 Thread Tiago Vignatti
On 02/10/2012 11:03 AM, Pekka Paalanen wrote: On Thu, 09 Feb 2012 16:41:08 -0800 Bill Spitzak wrote: You are probably right that the round-trip would be bad. Can it just use the transparency of the current buffer, rather than other information that needs to be transmitted from the client? T

Re: [PATCH] wip: per-pixel surface picking

2012-02-10 Thread Pekka Paalanen
On Thu, 09 Feb 2012 16:41:08 -0800 Bill Spitzak wrote: > You are probably right that the round-trip would be bad. > > Can it just use the transparency of the current buffer, rather than > other information that needs to be transmitted from the client? That would be better than round-trips, sur

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Daniel Stone
Hi, On 10 February 2012 00:41, Bill Spitzak wrote: > You are probably right that the round-trip would be bad. > > Can it just use the transparency of the current buffer, rather than other > information that needs to be transmitted from the client? > > Another possibility is that the api is simpli

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Bill Spitzak
You are probably right that the round-trip would be bad. Can it just use the transparency of the current buffer, rather than other information that needs to be transmitted from the client? Another possibility is that the api is simplified to *one* rectangle, and the client says "anything insi

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Daniel Stone
Hi, Sorry for the drive-by, but ... On 9 February 2012 21:43, Bill Spitzak wrote: > I feel that a better solution is for the compositor to send any event in the > surface rectangle to the client, but the client is allowed to respond with a > "that is in the transparent area", in which case the co

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Bill Spitzak
I feel that a better solution is for the compositor to send any event in the surface rectangle to the client, but the client is allowed to respond with a "that is in the transparent area", in which case the compositor sends it to a lower surface. The client certainly knows what shape it's surf

[PATCH] wip: per-pixel surface picking

2012-02-09 Thread Tiago Vignatti
This is an unfinished work and I won't have time to deal with it next. My intention was to come up with a protocol for applications specify the effective shape of their windows. Say, flower client could send a bunch of rectangles to the compositor telling about its real shape, so whenever an input