This patch is part of "Atomic saves for history and session" from http://git.altlinux.org/people/raorn/packages/WindowMaker.git