Hi,

I have 2 problems:

* how to restore the fullscreen state, maximized state and the size of the main window of an application when it is restarted ?
* how to do the above on MS Windows ?


All I want is for the main window of the application to save its:

* size when not in maximized/fullscreen/minimized states
* position when not in maximized/fullscreen/minimized states
* its normal/maximized/minimized/fullscreen state

when it is closed and restore all of the above when it is restarted.

What I have now works fine when the application is closed in the normal state. If it is maximized a/o fullscreen, than the problem starts.

For example, on MS Windows, if I start the app in fullscreen mode and then try to unfullscreen it, I end up with a window *with no decoration* ! Is this a known bug? Is there a work-arround?

On Linux it is a bit better: I get the decorations, but I still have to do a lot of checking like if it's the first time I switch from fullscreen/maximized to normal, then I use the saved states, otherwise I do nothing (and let the WM do its job). This is not very nice and it's not even working on MS Windows :(

Any recipes for the restoration of the size/position/state of an app?

TIA,

--
Ionutz Borcoman

http://borco.net/
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to