Re: [PATCH] exit function



Am Mon, 16 Nov 2009 22:43:31 +0200
schrieb Timo Korvola <Timo Korvola iki fi>:

> On Sunday 15 November 2009 20:55:49 Christopher Roy Bratusek wrote:
> > Sawfish 1.6.0 provides reboot/shutdown menu-entries, but if you're
> >  not using KDE/GNOME it just plainly calls shutdown, which has
> >  several disadvantages (else it uses the logout dialog from KDE or
> >  GNOME):
> 
> If you are not using a session manager, you don't get session 
> management.  Sawfish is a window manager, not a session manager.  The
> X reference implementation of session management is xsm, but desktop 
> environments provide their own session managers.  Session management 
> uses a separate ICE-based protocol rather than the X protocol.
> 
> >  First it delete-window-safely all windows
> 
> This approach appears unworkable.  Delete-window-safely merely sends
> a WM_DELETE_WINDOW client message to the window owner as specified in
> the ICCCM.  The owner may react by prompting the user, e.g., whether
> to save changes, yes, no or cancel.  If the user chooses cancel, the
> window is not closed.  The wm is not notified of this user
> interaction in any way. So the wm would need to wait for the window
> to disappear to be sure that no data is lost but it cannot wait for
> that because it might never happen.
> 

hmm, now there I'm reading this i realize it, too. Any better solution
in mind? On the other hand, when you manually close a session, normally
only stuff like pager, tray, panel, desklets are running, the rest is
closed by you before that. That's why I choose delete-window-safely, as
it would be enough for that windows.

Chris


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