summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2017-04-20 08:30:19 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2017-04-20 08:30:19 +0300
commit046dfb7d3689006927fa788fb935a26c02b81b31 (patch)
tree2268e0a4120287c7fdaf675b8108ea5ada13a02a /recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
parent34b9d9fa2750bce915991828e707d8cf595da289 (diff)
parent5f837b47f5c3e462f24cd5abf58ff6ef1dd04932 (diff)
downloadmeta-qt5-046dfb7d3689006927fa788fb935a26c02b81b31.tar.gz
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9
* upstream/master: qttools: add ptest qtwayland: fix initial window property values qtdeclarative: fix memory leaks Change-Id: Iaa0191e65a40a385b10c8b552fe791345aafdd6b
Diffstat (limited to 'recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch')
-rw-r--r--recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch b/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
new file mode 100644
index 00000000..29c9180c
--- /dev/null
+++ b/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
@@ -0,0 +1,35 @@
1From 3d30fd8df9b55449844207295ad3d51cc8bb44b1 Mon Sep 17 00:00:00 2001
2From: Robert Griebl <robert.griebl@pelagicore.com>
3Date: Thu, 15 Dec 2016 17:43:00 +0100
4Subject: [PATCH 2/2] Fix initial window property values being propagated
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This was broken since the the shell-surface refactoring.
10
11Change-Id: I130b7396e85c570a9d11d609af6b3016e3f706f0
12Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
13Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
14Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
15---
16 src/client/qwaylandwindow.cpp | 3 +++
17 1 file changed, 3 insertions(+)
18
19diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
20index c8be9c1..b6f16f0 100644
21--- a/src/client/qwaylandwindow.cpp
22+++ b/src/client/qwaylandwindow.cpp
23@@ -176,6 +176,9 @@ void QWaylandWindow::initWindow()
24 mShellSurface->setAppId(appId);
25 }
26 }
27+ // the user may have already set some window properties, so make sure to send them out
28+ for (auto it = m_properties.cbegin(); it != m_properties.cend(); ++it)
29+ mShellSurface->sendProperty(it.key(), it.value());
30 }
31
32 // Enable high-dpi rendering. Scale() returns the screen scale factor and will
33--
342.9.3
35