summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-07-06 11:52:17 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-06 12:24:41 +0200
commit3b11b1c8844f17fd7f46fa10256b355317dc3a46 (patch)
tree3485743d2ab92535f66734aae79382c94e83149f /dev-qt/qtgui/files
parentmedia-libs/avidemux-plugins: Drop 2.6.20 (diff)
downloadgentoo-3b11b1c8844f17fd7f46fa10256b355317dc3a46.tar.gz
gentoo-3b11b1c8844f17fd7f46fa10256b355317dc3a46.tar.bz2
gentoo-3b11b1c8844f17fd7f46fa10256b355317dc3a46.zip
dev-qt: Add Qt 5.12.4
Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-qt/qtgui/files')
-rw-r--r--dev-qt/qtgui/files/qtgui-5.12.4-fix-highdpi-crash.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-qt/qtgui/files/qtgui-5.12.4-fix-highdpi-crash.patch b/dev-qt/qtgui/files/qtgui-5.12.4-fix-highdpi-crash.patch
new file mode 100644
index 000000000000..57a8b1985a71
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-5.12.4-fix-highdpi-crash.patch
@@ -0,0 +1,32 @@
+From 6d61b10f65cd276e009a02cec563cc469245e1f2 Mon Sep 17 00:00:00 2001
+From: Friedemann Kleint <Friedemann.Kleint@qt.io>
+Date: Wed, 19 Jun 2019 08:28:14 +0200
+Subject: [PATCH] High DPI: Fix crash in QWindow::mapFromGlobal()
+
+With Web Engine, QQuickWidget or similar, the code can hit on the offscreen
+window, when its handle is null. Add a check.
+
+Amends 3af7b279177f7fb092f0e0fb9ffc8e8d846ed774.
+
+Fixes: QTBUG-76440
+Change-Id: I123633d18386efd3dbfb22aad6072e4f0877a62e
+Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
+---
+ src/gui/kernel/qhighdpiscaling.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gui/kernel/qhighdpiscaling.cpp b/src/gui/kernel/qhighdpiscaling.cpp
+index 4f8e9a38176..93fcb1a2160 100644
+--- a/src/gui/kernel/qhighdpiscaling.cpp
++++ b/src/gui/kernel/qhighdpiscaling.cpp
+@@ -400,7 +400,7 @@ QPoint QHighDpiScaling::mapPositionToGlobal(const QPoint &pos, const QPoint &win
+ QPoint QHighDpiScaling::mapPositionFromGlobal(const QPoint &pos, const QPoint &windowGlobalPosition, const QWindow *window)
+ {
+ QPoint windowPosCandidate = pos - windowGlobalPosition;
+- if (QGuiApplicationPrivate::screen_list.size() <= 1)
++ if (QGuiApplicationPrivate::screen_list.size() <= 1 || window->handle() == nullptr)
+ return windowPosCandidate;
+
+ // Device independent global (screen) space may discontiguous when high-dpi scaling
+--
+2.16.3