summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-07 05:24:06 +0000
committerDana Jansens <danakj@orodu.net>2007-06-07 05:24:06 +0000
commit7c6050b6f519d10446002da92d12cfc5e6ce2e15 (patch)
treefbdb486a248a091e06b32afcda29f59cf32ed6bc
parent4cf8fd5c23082b3df816327eed13d0dbdccf4746 (diff)
add debug prints
-rw-r--r--openbox/client.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 2f374bbf..03e4c9a5 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1123,16 +1123,24 @@ static void client_get_desktop(ObClient *self)
}
if (all != screen_num_desktops) {
self->desktop = all;
+
+ ob_debug("client desktop set from parents: 0x%x\n",
+ self->desktop);
}
/* try get from the startup-notification protocol */
else if (sn_get_desktop(self->startup_id, &self->desktop)) {
if (self->desktop >= screen_num_desktops &&
self->desktop != DESKTOP_ALL)
self->desktop = screen_num_desktops - 1;
+ ob_debug("client desktop set from startup-notification: 0x%x\n",
+ self->desktop);
}
/* defaults to the current desktop */
- else
+ else {
self->desktop = screen_desktop;
+ ob_debug("client desktop set to the current desktop: %d\n",
+ self->desktop);
+ }
}
}