summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel van Vugt <daniel.van.vugt@canonical.com>2020-10-15 15:56:59 +0800
committerJonas Ã…dahl <jadahl@gmail.com>2020-10-20 09:53:52 +0000
commit716ecf6cdf78c85f3029353ac4e8ac62b22636b6 (patch)
treea8bb80e2f91649f82739d58a9f206cf7b9956358
parent0501d3020e0b2a86c38b7c30f97ee64373b0fe2a (diff)
downloadmutter-716ecf6cdf78c85f3029353ac4e8ac62b22636b6.tar.gz
util: Add META_DEBUG_WAYLAND debug topic
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1387
-rw-r--r--src/core/main.c1
-rw-r--r--src/core/util.c2
-rw-r--r--src/meta/util.h2
3 files changed, 5 insertions, 0 deletions
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;
/**