On Mon, Jun 12, 2000 at 11:22:19AM -0400, Ben Tracy wrote:
> Is there a way to raise or deiconify a window from a script?
It's possibly to deiconify a window from a Perl script. You will need the
X11::Protocol module, and a window identifier (can be obtained by xwininfo):
perl -MX11::Protocol -wle '$x = new X11::Protocol; $x->UnmapWindow($id);'
($id there should be replaced with the window identifier.)
Iconifying and deiconifying windows that aren't on the same workspace can
cause weird results (I ended up with just the frame, the client window went
off into limbo). Also, you'll want to get the window identifier
programmatically, but I didn't look into that, so you'll have to delve into
X11::Protocol's documentation, and possibly some source code (blackbox is a
great place to start).
As for raising a window, X11::Protocol doesn't have any raise functions that
I could see. There may be a way to do it, but if so, I don't know what it
is.
I looked very briefly for a Python module (since that was another language
mentioned) for doing X11 protocol requests, but didn't find anything. It's
a good bet there's something out there, but I didn't look very hard.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--