Re: Session management and window geometry



>   Are session-aware applications expected to save their window geometry
>  in the session if they want it to be restored after a restart, or is the
>  window manager expected to store it for them? I know Enlightenment
>  remembers some window properties, but I think it has its own session
>  management code for use outside of Gnome - what's the recommended
>  behaviour for Gnome applications?

Applications should not save their window geometries.  The window
manager is responsible for saving this, since it is really the only
one who knows the correct way to position windows on the screen when
the session is reloaded.

The application just has to identify each of its windows uniquely by
setting the window name and class --- you can do this using
gtk_window_set_wmclass().

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]