Re: A question about XCompositeRedirectSubwindows

2018-06-22 Thread Evgeny Zubok
Egil Möller writes: > Impressive! It's nice to see someone spending the time to help out > newcomers to a codebase / api. Yo may also have a look at this good article: http://www.talisman.org/~erlkonig/misc/x11-composite-tutorial/ ___

Re: A question about XCompositeRedirectSubwindows

2018-06-20 Thread Jasper St. Pierre
On Wed, Jun 20, 2018 at 8:19 AM Adam Jackson wrote: > On Tue, 2018-06-19 at 17:35 -0700, Jasper St. Pierre wrote: > > > First off, there's a super high latency cost here. > > There is a latency cost, but I think it's worth being honest about it. > I'm on whatever iteration of the Dell XPS laptop

Re: A question about XCompositeRedirectSubwindows

2018-06-20 Thread Adam Jackson
On Tue, 2018-06-19 at 17:35 -0700, Jasper St. Pierre wrote: > First off, there's a super high latency cost here. There is a latency cost, but I think it's worth being honest about it. I'm on whatever iteration of the Dell XPS laptop was a Skylake, and: 200 trep @ 0.0131 msec (

Re: A question about XCompositeRedirectSubwindows

2018-06-20 Thread Egil Möller
Thank you for helping me figure this out, and I should also add thanks for that article series you created and linked! It's really good, and the interactive examples are really cool. Must have taken forever to build them (and the abstractions on top of the DOM)! Impressive! It's nice to see

Re: A question about XCompositeRedirectSubwindows

2018-06-19 Thread Jasper St. Pierre
On Tue, Jun 19, 2018 at 2:23 PM Egil Möller wrote: > Oups, sorry for my reply-to-you-only, that was a mistake. > > So my problem with letting events "fall through" to the window is that I > plan to do zoom (hence the OpenGL), both in and out, and would like to have > events working even in a

Re: A question about XCompositeRedirectSubwindows

2018-06-19 Thread Egil Möller
Oups, sorry for my reply-to-you-only, that was a mistake. So my problem with letting events "fall through" to the window is that I plan to do zoom (hence the OpenGL), both in and out, and would like to have events working even in a zoomed state... The window manager idea I'd like to build is one

Re: A question about XCompositeRedirectSubwindows

2018-06-19 Thread Jasper St. Pierre
Hi, (Re-adding xorg-devel. Please make sure to keep the list CC'd in the future) It is possible for a window to set "no background color", in which case the existing window contents are used for the pixmap. xclock likely sets no background color. You can check an individual window's properties

Re: A question about XCompositeRedirectSubwindows

2018-06-19 Thread Jasper St. Pierre
Hi, What you're seeing here is a fun little side effect of composite. As you might be aware, unredirected X windows don't have any backing storage beyond the front buffer -- the full window contents are not really there. That means that when the X server first goes to redirect these windows, it

A question about XCompositeRedirectSubwindows

2018-06-17 Thread Egil Möller
Hi! I'm trying to write a new compositing window manager, and finding the documentation for the API:s I need quite spread out. The particular problem I'm having right now is that copying some windows (xclock) using XCompositeRedirectSubwindows and e.g. XRenderComposite works fine, while other