From: Dana Jansens Date: Fri, 11 Jun 2010 17:31:09 +0000 (-0400) Subject: Make a debug type for composite messages. Turn it on by default for now. X-Git-Tag: cgl~38 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ad328d639e5e0bd7cd93f5c707a185dc945f5b73;p=dana%2Fopenbox.git Make a debug type for composite messages. Turn it on by default for now. --- diff --git a/openbox/debug.c b/openbox/debug.c index 8423e8ab..b247aae8 100644 --- a/openbox/debug.c +++ b/openbox/debug.c @@ -153,6 +153,7 @@ static inline void log_argv(ObDebugType type, case OB_DEBUG_FOCUS: prefix = "(FOCUS) "; break; case OB_DEBUG_APP_BUGS: prefix = "(APPLICATION BUG) "; break; case OB_DEBUG_SM: prefix = "(SESSION) "; break; + case OB_DEBUG_CM: prefix = "(COMPOSITE) "; break; default: prefix = NULL; break; } diff --git a/openbox/debug.h b/openbox/debug.h index a24e66ea..94bcc005 100644 --- a/openbox/debug.h +++ b/openbox/debug.h @@ -31,6 +31,7 @@ typedef enum { OB_DEBUG_FOCUS, OB_DEBUG_APP_BUGS, OB_DEBUG_SM, + OB_DEBUG_CM, OB_DEBUG_TYPE_NUM } ObDebugType; diff --git a/openbox/openbox.c b/openbox/openbox.c index 0ea8cc42..14ef7d41 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -122,6 +122,8 @@ gint main(gint argc, gchar **argv) ob_set_state(OB_STATE_STARTING); ob_debug_startup(); + ob_debug_enable(OB_DEBUG_CM, TRUE); /* composite debug enabled by default + for now */ /* initialize the locale */ if (!(ob_locale_msg = setlocale(LC_MESSAGES, "")))