From 716ecf6cdf78c85f3029353ac4e8ac62b22636b6 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 15 Oct 2020 15:56:59 +0800 Subject: [PATCH] util: Add META_DEBUG_WAYLAND debug topic https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1387 --- src/core/main.c | 1 + src/core/util.c | 2 ++ src/meta/util.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/core/main.c b/src/core/main.c index 089114151..db1805ea6 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -119,6 +119,7 @@ static const GDebugKey meta_debug_keys[] = { { "edge-resistance", META_DEBUG_EDGE_RESISTANCE }, { "dbus", META_DEBUG_DBUS }, { "input", META_DEBUG_INPUT }, + { "wayland", META_DEBUG_WAYLAND }, }; /* diff --git a/src/core/util.c b/src/core/util.c index 0c9a31d82..1a77927d1 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -278,6 +278,8 @@ topic_name (MetaDebugTopic topic) return "INPUT"; case META_DEBUG_VERBOSE: return "VERBOSE"; + case META_DEBUG_WAYLAND: + return "WAYLAND"; } return "WM"; diff --git a/src/meta/util.h b/src/meta/util.h index 5fddf0873..1bf80d868 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -75,6 +75,7 @@ void meta_fatal (const char *format, * @META_DEBUG_RESIZING: resizing * @META_DEBUG_SHAPES: shapes * @META_DEBUG_EDGE_RESISTANCE: edge resistance + * @META_DEBUG_WAYLAND: Wayland */ typedef enum { @@ -99,6 +100,7 @@ typedef enum META_DEBUG_EDGE_RESISTANCE = 1 << 17, META_DEBUG_DBUS = 1 << 18, META_DEBUG_INPUT = 1 << 19, + META_DEBUG_WAYLAND = 1 << 20, } MetaDebugTopic; /**