Hiding X windows

Jeff Epler jepler at unpythonic.net
Sat Jun 11 15:04:22 CEST 2005


You may want to use a standalone program to do this.  "xwit" has the
ability to iconify a window which can be selected in a variety of ways.
    http://hpux.connect.org.uk/hppd/hpux/X11/Misc/xwit-1.0/man.html

There's a direct Python interface to the X protocol in python-xlib.  You
could re-write the common function "Select_Window()" from dsimple.c in
the X source distribution.  One (old) copy is here:
    http://ftp.rge.com/pub/X/X11R6.4/xc/programs/xwininfo/dsimple.c

Having done that, I'm not entirely sure how you proceed to hide the
window.  You might follow the directions in the ICCCM on how to iconify
or withdraw a window (http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4),
or you might follow the EWMH document
(http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#id2507242)

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050611/fc37a7e3/attachment.sig>


More information about the Python-list mailing list