Make a debug type for composite messages. Turn it on by default for now.
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jun 2010 17:31:09 +0000 (13:31 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 26 Jun 2010 23:30:49 +0000 (01:30 +0200)
openbox/debug.c
openbox/debug.h
openbox/openbox.c

index 8423e8ab565bb079d9a0f00cdc44cf5dc81f67ad..b247aae819b4921b4983986110067748a845071a 100644 (file)
@@ -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;
     }
 
index a24e66ea7d97771e593ddf5f5159788173883644..94bcc005be3e26398979c1399bb1a2751898fcff 100644 (file)
@@ -31,6 +31,7 @@ typedef enum {
     OB_DEBUG_FOCUS,
     OB_DEBUG_APP_BUGS,
     OB_DEBUG_SM,
+    OB_DEBUG_CM,
     OB_DEBUG_TYPE_NUM
 } ObDebugType;
 
index 0ea8cc42794408d20045ef83e761b24e651172bd..14ef7d4139539c7038b386a983e6f2d7ec7b8511 100644 (file)
@@ -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, "")))