summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-01 15:46:04 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-01 15:46:04 +0000
commit9d68b98bc9bfe33432b66358fd78b1590e6ea597 (patch)
tree3c5a048e54a89a44ff8a804e7ef050e17039ff8b /src/session.c
parenta242f622eaec4d6a5fe19fea11841f4372df22c2 (diff)
downloadmetacity-9d68b98bc9bfe33432b66358fd78b1590e6ea597.tar.gz
metacity-9d68b98bc9bfe33432b66358fd78b1590e6ea597.tar.bz2
put in more debug spew about the session
2002-06-01 Havoc Pennington <hp@pobox.com> * src/session.c: put in more debug spew about the session
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 3c965a6..0c776e3 100644
--- a/src/session.c
+++ b/src/session.c
@@ -366,6 +366,10 @@ static void
save_yourself_possibly_done (gboolean shutdown,
gboolean successful)
{
+ meta_topic (META_DEBUG_SM,
+ "save possibly done shutdown = %d success = %d\n",
+ shutdown, successful);
+
if (current_state == STATE_SAVING_PHASE_1)
{
Status status;
@@ -376,6 +380,9 @@ save_yourself_possibly_done (gboolean shutdown,
if (status)
current_state = STATE_WAITING_FOR_PHASE_2;
+
+ meta_topic (META_DEBUG_SM,
+ "Requested phase 2, status = %d\n", status);
}
if (current_state == STATE_SAVING_PHASE_2 &&
@@ -393,12 +400,17 @@ save_yourself_possibly_done (gboolean shutdown,
if (status)
current_state = STATE_WAITING_FOR_INTERACT;
+
+ meta_topic (META_DEBUG_SM,
+ "Requested interact, status = %d\n", status);
}
if (current_state == STATE_SAVING_PHASE_1 ||
current_state == STATE_SAVING_PHASE_2 ||
current_state == STATE_DONE_WITH_INTERACT)
{
+ meta_topic (META_DEBUG_SM, "Sending SaveYourselfDone\n");
+
SmcSaveYourselfDone (session_connection,
successful);
@@ -414,6 +426,8 @@ save_phase_2_callback (SmcConn smc_conn, SmPointer client_data)
{
gboolean shutdown;
+ meta_topic (META_DEBUG_SM, "Phase 2 save");
+
shutdown = GPOINTER_TO_INT (client_data);
current_state = STATE_SAVING_PHASE_2;
@@ -433,6 +447,8 @@ save_yourself_callback (SmcConn smc_conn,
{
gboolean successful;
+ meta_topic (META_DEBUG_SM, "SaveYourself received");
+
successful = TRUE;
/* The first SaveYourself after registering for the first time
@@ -480,11 +496,14 @@ static void
save_complete_callback (SmcConn smc_conn, SmPointer client_data)
{
/* nothing */
+ meta_topic (META_DEBUG_SM, "SaveComplete received");
}
static void
shutdown_cancelled_callback (SmcConn smc_conn, SmPointer client_data)
{
+ meta_topic (META_DEBUG_SM, "Shutdown cancelled received");
+
if (session_connection != NULL &&
(current_state != STATE_IDLE && current_state != STATE_FROZEN))
{
@@ -499,6 +518,8 @@ interact_callback (SmcConn smc_conn, SmPointer client_data)
/* nothing */
gboolean shutdown;
+ meta_topic (META_DEBUG_SM, "Interaction permission received");
+
shutdown = GPOINTER_TO_INT (client_data);
current_state = STATE_DONE_WITH_INTERACT;