nanogui: Window ID


Previous by date: 4 Oct 2005 15:16:38 +0100 Re: non-client server mode, Greg Haerr
Next by date: 4 Oct 2005 15:16:38 +0100 Screen Saver, Michael Gao
Previous in thread: 4 Oct 2005 15:16:38 +0100 Window ID, Lorenzo Nocentini
Next in thread: 4 Oct 2005 15:16:38 +0100 Re: Window ID, Greg Haerr

Subject: Re: Window ID
From: "Jordan Crouse" ####@####.####
Date: 4 Oct 2005 15:16:38 +0100
Message-Id: <20051004143316.GA15466@cosmic.amd.com>

> I still cannot manage to get the window id of an application that I launch
> from microwindows.
> What I do to run a secondary application inside my primary application is:
> 
> execvp(*argv, argv)
> 
> and with this a new window is created with the new application.
> 
> However I need its window id to handle this new application window.
> 
> I do not want to use an external window manager (nanowm or pixil).

I still recommend that you look over the nanowm and pixil code to see how
things like this are done, because you'll end up dealing with many of the
same issues in your application.

For your specific question, you should select on the
GR_EVENT_TYPE_CHLD_UPDATE event for the root window, and look for the subtype
of GR_UPDATE_MAP - this will tell you when a newly created window has been
mapped (and the id of that window).

If you have the pixil code handy, check line 238 of sys/pixilwm/main.c - you
can see how the pixilwm does it.

Jordan

-- 
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>


Previous by date: 4 Oct 2005 15:16:38 +0100 Re: non-client server mode, Greg Haerr
Next by date: 4 Oct 2005 15:16:38 +0100 Screen Saver, Michael Gao
Previous in thread: 4 Oct 2005 15:16:38 +0100 Window ID, Lorenzo Nocentini
Next in thread: 4 Oct 2005 15:16:38 +0100 Re: Window ID, Greg Haerr


Powered by ezmlm-browse 0.20.