summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/qwaylanddisplay.cpp2
-rw-r--r--src/client/qwaylanddisplay_p.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
index abb084522..a9fff410a 100644
--- a/src/client/qwaylanddisplay.cpp
+++ b/src/client/qwaylanddisplay.cpp
@@ -79,6 +79,8 @@ QT_BEGIN_NAMESPACE
namespace QtWaylandClient {
+Q_LOGGING_CATEGORY(lcQpaWayland, "qt.qpa.wayland"); // for general (uncategorized) Wayland platform logging
+
struct wl_surface *QWaylandDisplay::createSurface(void *handle)
{
struct wl_surface *surface = mCompositor.create_surface();
diff --git a/src/client/qwaylanddisplay_p.h b/src/client/qwaylanddisplay_p.h
index bc4af7a50..a65ed320d 100644
--- a/src/client/qwaylanddisplay_p.h
+++ b/src/client/qwaylanddisplay_p.h
@@ -57,6 +57,7 @@
#include <QtCore/QVector>
#include <QtCore/QWaitCondition>
+#include <QtCore/QLoggingCategory>
#include <wayland-client.h>
@@ -83,6 +84,8 @@ namespace QtWayland {
namespace QtWaylandClient {
+Q_DECLARE_LOGGING_CATEGORY(lcQpaWayland);
+
class QWaylandInputDevice;
class QWaylandBuffer;
class QWaylandScreen;