> > Hi.  Ive written a small native interface that searches for a window given
> > it's name, and then sets the MWM and Gnome hints on that window (ie stay
> > on top, hide close button etc)  Unfortunatly the search process is quite
> > slow - can anyone recommend a nice way to get ahold of the window
> > handle
> > directly?
> 
> "Directly" meaning to ask the X server to find a window by name?
> 
> I don't think so. You might want to track down the source to xwininfo (a
> standard X client -- should be in XFree86 distributions) to see how it
> finds a window by name, but I think it searches... and it doesn't take
> very long. The named windows are grandchildren of the root window, so

I meant getting the window handle directly from the innards of Java.  The
current program has some code ripped directly from xprop which searches by
name, but it takes a good 3-4 sec on a remote X server.

-- Michael


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to