[packages/qt5-qtbase] patch for keyboard input regression in QWebEngine

atler atler at pld-linux.org
Thu Sep 26 01:15:29 CEST 2019


commit b6f0b55e12a47934a407bf45daa1b149ae172abf
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Sep 26 01:14:30 2019 +0200

    patch for keyboard input regression in QWebEngine
    
    https://bugreports.qt.io/browse/QTBUG-77364

 qt5-qtbase.spec   |  2 ++
 qtbug-77364.patch | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
---
diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec
index e808a09..e4aa1a5 100644
--- a/qt5-qtbase.spec
+++ b/qt5-qtbase.spec
@@ -76,6 +76,7 @@ Source1:	http://download.qt.io/official_releases/qt/5.13/%{version}/submodules/q
 # Source1-md5:	8f2e2ce52c296a1bfd814610770663ae
 Patch0:		%{name}-system_cacerts.patch
 Patch1:		qdoc_default_incdirs.diff
+Patch2:		qtbug-77364.patch
 URL:		http://www.qt.io/
 %{?with_directfb:BuildRequires:	DirectFB-devel}
 BuildRequires:	EGL-devel
@@ -1177,6 +1178,7 @@ Generator plików makefile dla aplikacji Qt5.
 %setup -q -n %{orgname}-everywhere-src-%{version} %{?with_qm:-a1}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %{__sed} -i -e 's,usr/X11R6/,usr/,g' mkspecs/linux-g++-64/qmake.conf
 
diff --git a/qtbug-77364.patch b/qtbug-77364.patch
new file mode 100644
index 0000000..54b0969
--- /dev/null
+++ b/qtbug-77364.patch
@@ -0,0 +1,35 @@
+From 947883141d9d8b3079a8a21981ad8a5ce3c4798e Mon Sep 17 00:00:00 2001
+From: David Faure <david.faure at kdab.com>
+Date: Mon, 9 Sep 2019 18:12:26 +0200
+Subject: [PATCH] QWidget::setFocusProxy: adjust focus widget properly
+
+My commit 3e7463411e adjusted the focus widget by setting
+QApplicationPrivate::focus_widget directly, while there is a method for
+doing this properly, including setFocus_sys() and emitting signals.
+
+Fixes: QTBUG-77364
+Change-Id: I218acf7a9de39173d282ced46def4f65594f80b4
+Reviewed-by: Florian Bruhin <qt-project.org at the-compiler.org>
+Reviewed-by: Volker Hilsheimer <volker.hilsheimer at qt.io>
+Reviewed-by: Allan Sandfeld Jensen <allan.jensen at qt.io>
+Reviewed-by: Shawn Rutledge <shawn.rutledge at qt.io>
+---
+ src/widgets/kernel/qwidget.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
+index 04290a4ce12..0fa59077449 100644
+--- a/src/widgets/kernel/qwidget.cpp
++++ b/src/widgets/kernel/qwidget.cpp
+@@ -6446,7 +6446,7 @@ void QWidget::setFocusProxy(QWidget * w)
+ 
+     if (changingAppFocusWidget) {
+         QWidget *newDeepestFocusProxy = d_func()->deepestFocusProxy();
+-        QApplicationPrivate::focus_widget = newDeepestFocusProxy ? newDeepestFocusProxy : this;
++        QApplicationPrivate::setFocusWidget(newDeepestFocusProxy ? newDeepestFocusProxy : this, Qt::NoFocusReason);
+     }
+ }
+ 
+-- 
+2.16.3
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtbase.git/commitdiff/b6f0b55e12a47934a407bf45daa1b149ae172abf



More information about the pld-cvs-commit mailing list