[pygtk] restore window position

Simon Burton simon at arrowtheory.com
Thu Dec 17 15:13:57 WST 2009


When finding out the position of a window i get a position that is offset by
the window manager decorations. So I haven't been able to restore a windows
position because the move function takes a position that is not offset by
the decorations.

Is there a way around this problem ?

I have tried all the following:

window.window.get_frame_extents()
window.allocation

window.get_position()

window.window.get_origin()

They all return coordinates offset by the window manager decorations.

Someone else asked the same question recently:
http://www.daa.com.au/pipermail/pygtk/2009-August/017434.html

Simon.


More information about the pygtk mailing list