On Mon, 2008-02-11 at 13:04 +0100, Johan Bilien wrote: > On Mon, Feb 11, 2008, iain wrote: > > > > On Mon, 2008-02-11 at 08:30 +0100, Johan Bilien wrote: > > > > > I want to make the stage's window a child of the Composite overlay > > > window, so I can have a clutter-based X compositor. > > > > You can use > > clutter_x11_set_stage_foreign (CLUTTER_STAGE (stage), overlay_window) as > > well, although that makes clutter stage draw directly onto the composite > > overlay window which may not be what you want. > > Yes I tried that some time ago, but at the time GLX was failing an > assert (mode != 0) or something like that. I read somewhere that > compositors are expected to paint on children of the overlay so that > they can choose its visual for instance. >
Yeah you'll need to manually create a stage child window for the overlay and then set_foreign() - which probably isn't that nicer I thing for your use case (now I know). Referencing your mail describing what your doing, the best I can suggest is probably wait till we get multi stage in (that should also make subclassing possible). Another random thought is see if you get anything from the hide signal (re parenting will unmap/map the window) as that could fit better than show - but not 100% sure. == Matthew -- To unsubscribe send a mail to [EMAIL PROTECTED]
