all repos — openbox @ d394d8c613b8b85cd3ee92b6114716e57f8d03ce

openbox fork - make it a bit more like ryudo

don't save our state for SmSaveGlobal session saves, just Local ones
Dana Jansens danakj@orodu.net
commit

d394d8c613b8b85cd3ee92b6114716e57f8d03ce

parent

04c6d45ac06966201740bad9db50cb4ccc5a04ef

1 files changed, 16 insertions(+), 1 deletions(-)

jump to
M openbox/session.copenbox/session.c

@@ -404,7 +404,22 @@ {

ObSMSaveData *savedata = NULL; gchar *vendor; - ob_debug_type(OB_DEBUG_SM, "Session save requested\n"); +#ifdef DEBUG + { + const gchar *sname = + (save_type == SmSaveLocal ? "SmSaveLocal" : + (save_type == SmSaveGlobal ? "SmSaveGlobal" : + (save_type == SmSaveBoth ? "SmSaveBoth" : "INVALID!!"))); + ob_debug_type(OB_DEBUG_SM, "Session save requested, type %s\n", sname); + } +#endif + + if (save_type == SmSaveGlobal) { + /* we have no data to save. we only store state to get back to where + we were, we don't keep open writable files or anything */ + SmcSaveYourselfDone(conn, TRUE); + return; + } vendor = SmcVendor(sm_conn); ob_debug_type(OB_DEBUG_SM, "Session manager's vendor: %s\n", vendor);