From 777c89f10d950ce9d338e65d49a6472b8bb50c57 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Mon, 2 Sep 2024 21:09:34 +0200 Subject: [PATCH] Add debug topic "session-management" This is used to print debug information for session management. Part-of: --- src/core/util.c | 3 +++ src/meta/meta-debug.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/core/util.c b/src/core/util.c index 343668a39..3a9a0626c 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -70,6 +70,7 @@ static const GDebugKey meta_debug_keys[] = { { "input-events", META_DEBUG_INPUT_EVENTS }, { "eis", META_DEBUG_EIS }, { "kms-deadline", META_DEBUG_KMS_DEADLINE }, + { "session-management", META_DEBUG_SESSION_MANAGEMENT }, }; static gint verbose_topics = 0; @@ -329,6 +330,8 @@ meta_topic_to_string (MetaDebugTopic topic) return "EIS"; case META_DEBUG_KMS_DEADLINE: return "KMS_DEADLINE"; + case META_DEBUG_SESSION_MANAGEMENT: + return "SESSION_MANAGEMENT"; } return "WM"; diff --git a/src/meta/meta-debug.h b/src/meta/meta-debug.h index 2de9a89d7..915125efe 100644 --- a/src/meta/meta-debug.h +++ b/src/meta/meta-debug.h @@ -51,6 +51,7 @@ * @META_DEBUG_INPUT_EVENTS: input events * @META_DEBUG_EIS: eis state * @META_DEBUG_KMS_DEADLINE: KMS deadline timers + * @META_DEBUG_SESSION_MANAGEMENT: session management */ typedef enum { @@ -85,6 +86,7 @@ typedef enum META_DEBUG_INPUT_EVENTS = 1 << 27, META_DEBUG_EIS = 1 << 28, META_DEBUG_KMS_DEADLINE = 1 << 29, + META_DEBUG_SESSION_MANAGEMENT = 1 << 30, } MetaDebugTopic; META_EXPORT