aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-07-26 14:23:54 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-08-01 15:13:39 +0000
commite5c06f877e118db2c27d5faadc3bce73e005c3cb (patch)
tree65da3ecfed77c27a853ccc5f2cdcba6dfe50166b /recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch
parent70ac3393d677da85aeab2a208ece874f13eb0e60 (diff)
qtwayland: Clean-up and adapt inputContext() patch
This cleans up all qtwayland patches that haven't been used in quite some time and adapts a slightly recent patch that provided a work-around to enable Qt debugging (using QT_LOGGING_RULES), which a qtwayland update made it so the patch wouldn't apply anymore. Bug-AGL: SPEC-4770 Change-Id: Ie24b4dff51500a9ab85635768045b2ee0c29bd0a Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch')
-rw-r--r--recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch b/recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch
new file mode 100644
index 000000000..77362dac3
--- /dev/null
+++ b/recipes-qt/qt/qtwayland/0001-qwaylandintegration-Keep-previous-check-related-to-i.patch
@@ -0,0 +1,33 @@
+From 81213fb5e1bdd19f4f8135bcddcc1efaeb1b42a5 Mon Sep 17 00:00:00 2001
+From: Marius Vlad <marius.vlad@collabora.com>
+Date: Wed, 26 Jul 2023 13:57:30 +0300
+Subject: [PATCH] qwaylandintegration: Keep previous check related to
+ inputContext()
+
+Avoid touching inputContext() when QT_LOGGING_RULES are enabled. This
+check ensures we're still able to debug Qt issues.
+
+Bug-AGL: SPEC-4770
+Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
+---
+ src/client/qwaylandintegration.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
+index c53ccb78..6d3d9559 100644
+--- a/src/client/qwaylandintegration.cpp
++++ b/src/client/qwaylandintegration.cpp
+@@ -479,7 +479,9 @@ void QWaylandIntegration::reconfigureInputContext()
+ }
+ #endif
+
+- qCDebug(lcQpaWayland) << "using input method:" << inputContext()->metaObject()->className();
++ bool mUsingInputContextFromCompositor = qobject_cast<QWaylandInputContext *>(mInputContext.data());
++ if (mUsingInputContextFromCompositor)
++ qCDebug(lcQpaWayland) << "using input method:" << inputContext()->metaObject()->className();
+ }
+
+ QWaylandShellIntegration *QWaylandIntegration::createShellIntegration(const QString &integrationName)
+--
+2.35.1
+