1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +01:00

Atomic save for session

This patch is part of "Atomic saves for history and session" from
http://git.altlinux.org/people/raorn/packages/WindowMaker.git
This commit is contained in:
Alexey I. Froloff
2009-03-29 16:53:00 +04:00
committed by Carlos R. Mafra
parent 05720d9707
commit 8490e31fde

View File

@@ -1003,7 +1003,11 @@ static void smSaveYourselfPhase2Proc(SmcConn smc_conn, SmPointer client_data)
plState = WMCreatePLDictionary(WMCreatePLString("Version"), plState = WMCreatePLDictionary(WMCreatePLString("Version"),
WMCreatePLString("1.0"), WMCreatePLString("Screens"), state, NULL); WMCreatePLString("1.0"), WMCreatePLString("Screens"), state, NULL);
WMWritePropListToFile(plState, statefile, False); if (!WMWritePropListToFile(plState, statefile, True)) {
wwarning(_("error while saving session state"));
WMReleasePropList(plState);
goto fail;
}
WMReleasePropList(plState); WMReleasePropList(plState);