[MeeGo-touch-dev] grab XWindowID from MTF applications
ab at samba.org
Thu Sep 9 00:38:07 PDT 2010
On Thu, Sep 9, 2010 at 00:34, Jackson, Thomas (Tom)
<Tom.Jackson at windriver.com> wrote:
> Hi All:
> I have a general question regarding XWindowID and MTF Applications. We are
> developing a service that is using the XwindowID to handle the drawing
> of images on the screen. Can anyone tell us how this service can get the
> XWindowID from the MTF applications or if this is even possible via MTF?
> The goal is to grab the XWindowID of where the images are going to be
> Any good advice/suggestions?
First, you need to understand that in case of OpenGL use the actual
scene isn't drawn with X anymore. There is X drawable backing whole
MTF application but it not really used for anything other than event
passing and geometry. Drawing on the drawable will interfere with the
main painting path.
If you want to use the drawable geometry information to communicate it
to something else (Xv API requires this and VA API is modelled about
the same concept), you can get MWindow::winId() (after all, MWindow is
a QWidget's child through inheritance). Be prepared that the
information about winId() may be correct only at MApplicationWindow.
Also, Qt may recycle X drawable backing its resources due to few
factors (window is minimized, etc), so it may become invalid over its
/ Alexander Bokovoy
More information about the MeeGo-touch-dev