Re: combining Render's Composite + SHM's PutImage

2015-04-09 Thread Chris Wilson
On Thu, Apr 09, 2015 at 07:22:34PM +1000, Nigel Tao wrote: > On Thu, Apr 9, 2015 at 6:39 PM, Chris Wilson wrote: > > You can either read cairo for an example of how to mix SHM and Render, > > or > > http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/tools/virtual.c#n1819 > > Thanks fo

Need help finding a window ID for a widget based on coordinates

2015-04-09 Thread Mike Stewart
a bit of warning before I begin: I'm not very familiar with X11 and only recently got asked to do some display work, so if anything seems naive or ill-informed, it is because I am. I need to write something that can find the lowest level visible widget at the location and return the window ID, but

Re: combining Render's Composite + SHM's PutImage

2015-04-09 Thread Nigel Tao
On Thu, Apr 9, 2015 at 6:39 PM, Chris Wilson wrote: > You can either read cairo for an example of how to mix SHM and Render, > or > http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/tools/virtual.c#n1819 Thanks for the tip. I'll give it more than a skim later, but one thing looked od

Re: combining Render's Composite + SHM's PutImage

2015-04-09 Thread Chris Wilson
On Thu, Apr 09, 2015 at 11:01:47AM +1000, Nigel Tao wrote: > I'm possibly Doing It Wrong, but... > > I'm playing around with an X client, I have some shared memory full of > pixels, and I want to paint them on a window, with alpha-blending. I > also want to know when the paint is complete, so I ca