1
0
Fork 0

Add debug topic "session-management"

This is used to print debug information for session management.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3825>
This commit is contained in:
Sebastian Wick 2024-09-02 21:09:34 +02:00 committed by Marge Bot
parent 837b37170a
commit 777c89f10d
2 changed files with 5 additions and 0 deletions

View file

@ -70,6 +70,7 @@ static const GDebugKey meta_debug_keys[] = {
{ "input-events", META_DEBUG_INPUT_EVENTS }, { "input-events", META_DEBUG_INPUT_EVENTS },
{ "eis", META_DEBUG_EIS }, { "eis", META_DEBUG_EIS },
{ "kms-deadline", META_DEBUG_KMS_DEADLINE }, { "kms-deadline", META_DEBUG_KMS_DEADLINE },
{ "session-management", META_DEBUG_SESSION_MANAGEMENT },
}; };
static gint verbose_topics = 0; static gint verbose_topics = 0;
@ -329,6 +330,8 @@ meta_topic_to_string (MetaDebugTopic topic)
return "EIS"; return "EIS";
case META_DEBUG_KMS_DEADLINE: case META_DEBUG_KMS_DEADLINE:
return "KMS_DEADLINE"; return "KMS_DEADLINE";
case META_DEBUG_SESSION_MANAGEMENT:
return "SESSION_MANAGEMENT";
} }
return "WM"; return "WM";

View file

@ -51,6 +51,7 @@
* @META_DEBUG_INPUT_EVENTS: input events * @META_DEBUG_INPUT_EVENTS: input events
* @META_DEBUG_EIS: eis state * @META_DEBUG_EIS: eis state
* @META_DEBUG_KMS_DEADLINE: KMS deadline timers * @META_DEBUG_KMS_DEADLINE: KMS deadline timers
* @META_DEBUG_SESSION_MANAGEMENT: session management
*/ */
typedef enum typedef enum
{ {
@ -85,6 +86,7 @@ typedef enum
META_DEBUG_INPUT_EVENTS = 1 << 27, META_DEBUG_INPUT_EVENTS = 1 << 27,
META_DEBUG_EIS = 1 << 28, META_DEBUG_EIS = 1 << 28,
META_DEBUG_KMS_DEADLINE = 1 << 29, META_DEBUG_KMS_DEADLINE = 1 << 29,
META_DEBUG_SESSION_MANAGEMENT = 1 << 30,
} MetaDebugTopic; } MetaDebugTopic;
META_EXPORT META_EXPORT