summaryrefslogtreecommitdiff
path: root/openbox/debug.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-05 19:17:46 +0000
committerDana Jansens <danakj@orodu.net>2007-05-05 19:17:46 +0000
commit68a9a4c4fc2a8d0afd4d2bfc2f207165a209f79f (patch)
tree381a0a13ea9429243f89b9a3d57273c2ec681650 /openbox/debug.c
parent97ffe20f7e3f1031df0853ed9488104a66e2852e (diff)
some changes to ConfigureRequest, based on what I found in FVWM.
fix those stupid applications from moving accross the screen by the size of their decorations.
Diffstat (limited to 'openbox/debug.c')
-rw-r--r--openbox/debug.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbox/debug.c b/openbox/debug.c
index af22c69f..3a765dc5 100644
--- a/openbox/debug.c
+++ b/openbox/debug.c
@@ -35,6 +35,7 @@ void ob_debug(const gchar *a, ...)
va_list vl;
if (show) {
+ fprintf(stderr, "DEBUG: ");
va_start(vl, a);
vfprintf(stderr, a, vl);
va_end(vl);
@@ -56,6 +57,17 @@ void ob_debug_type(ObDebugType type, const gchar *a, ...)
g_assert(type < OB_DEBUG_TYPE_NUM);
if (show && enabled_types[type]) {
+ switch (type) {
+ case OB_DEBUG_FOCUS:
+ fprintf(stderr, "FOCUS: ");
+ break;
+ case OB_DEBUG_APP_BUGS:
+ fprintf(stderr, "APPLICATION BUG: ");
+ break;
+ default:
+ g_assert_not_reached();
+ }
+
va_start(vl, a);
vfprintf(stderr, a, vl);
va_end(vl);