#ifndef USE_SM
+#include "session.h"
+#include "client.h"
+
void session_load(char *path) {}
void session_startup(int argc, char **argv) {}
void session_shutdown() {}
-ObSessionState* session_state_find(struct _ObClient *c) { return NULL; }
+ObSessionState* session_state_find(ObClient *c) { return NULL; }
void session_state_free(ObSessionState *state) {}
#else
xmlNodePtr node, n;
gchar *sm_id;
- g_message("loading session from %s", path);
-
if (!parse_load(path, "openbox_session", &doc, &node))
return;
state->max_vert =
parse_find_node("max_vert", node->xmlChildrenNode) != NULL;
- g_message("read session window %s", state->name);
-
/* save this */
- g_message("saved state for %s %s", state->name, state->id);
sm_saved_state = g_slist_prepend(sm_saved_state, state);
goto session_load_ok;