use SmSaveGlobal to log out. this will make apps save their documents or whatever...
authorDana Jansens <danakj@orodu.net>
Mon, 3 Mar 2008 16:00:00 +0000 (17:00 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Mon, 3 Mar 2008 16:00:00 +0000 (17:00 +0100)
openbox/session.c

index 4483c05..82e292b 100644 (file)
@@ -809,7 +809,7 @@ void session_request_logout(gboolean silent)
 {
     if (sm_conn) {
         SmcRequestSaveYourself(sm_conn,
 {
     if (sm_conn) {
         SmcRequestSaveYourself(sm_conn,
-                               SmSaveBoth,
+                               SmSaveGlobal,
                                TRUE, /* logout */
                                (silent ?
                                 SmInteractStyleNone : SmInteractStyleAny),
                                TRUE, /* logout */
                                (silent ?
                                 SmInteractStyleNone : SmInteractStyleAny),