From 68a9a4c4fc2a8d0afd4d2bfc2f207165a209f79f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 5 May 2007 19:17:46 +0000 Subject: 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. --- openbox/debug.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbox/debug.c') 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); -- cgit v1.2.3