http://www.talisman.org/icccm/sec-4.html
and
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq23.026.htp