From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6AB1D138334 for ; Sun, 29 Sep 2019 07:04:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93AA8E089E; Sun, 29 Sep 2019 07:04:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 64B4AE089E for ; Sun, 29 Sep 2019 07:04:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3BAC34B6AE for ; Sun, 29 Sep 2019 07:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B39D6763 for ; Sun, 29 Sep 2019 07:04:39 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1569664555.a01453d34ae409ef1a3430a08c01b4633484a696.asturm@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qtwidgets/, dev-qt/qtwidgets/files/ X-VCS-Repository: proj/qt X-VCS-Files: dev-qt/qtwidgets/files/qtwidgets-5.13.1-adjust-focus-widget-properly.patch dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild X-VCS-Directories: dev-qt/qtwidgets/ dev-qt/qtwidgets/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a01453d34ae409ef1a3430a08c01b4633484a696 X-VCS-Branch: master Date: Sun, 29 Sep 2019 07:04:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1a0cc063-05d0-49cb-969d-f35ee1e0b228 X-Archives-Hash: d72860b612d5e497208748c9f7617256 commit: a01453d34ae409ef1a3430a08c01b4633484a696 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Sep 28 09:55:39 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Sep 28 09:55:55 2019 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=a01453d3 dev-qt/qtwidgets: Fix focus widget issue Fixes keyboard input or rather lack thereof in qtwebengine based applications. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner gentoo.org> ...dgets-5.13.1-adjust-focus-widget-properly.patch | 34 ++++++++++++++++++++++ dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild | 2 ++ 2 files changed, 36 insertions(+) diff --git a/dev-qt/qtwidgets/files/qtwidgets-5.13.1-adjust-focus-widget-properly.patch b/dev-qt/qtwidgets/files/qtwidgets-5.13.1-adjust-focus-widget-properly.patch new file mode 100644 index 00000000..6fdc0f2b --- /dev/null +++ b/dev-qt/qtwidgets/files/qtwidgets-5.13.1-adjust-focus-widget-properly.patch @@ -0,0 +1,34 @@ +From 947883141d9d8b3079a8a21981ad8a5ce3c4798e Mon Sep 17 00:00:00 2001 +From: David Faure +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 +Reviewed-by: Volker Hilsheimer +Reviewed-by: Allan Sandfeld Jensen +Reviewed-by: Shawn Rutledge +--- + 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 diff --git a/dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild b/dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild index 85ceaa9c..677d210f 100644 --- a/dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild +++ b/dev-qt/qtwidgets/qtwidgets-5.13.1.ebuild @@ -42,6 +42,8 @@ QT5_GENTOO_PRIVATE_CONFIG=( :widgets ) +PATCHES=( "${FILESDIR}/${P}-adjust-focus-widget-properly.patch" ) # QTBUG-77364 + src_configure() { local myconf=( -opengl $(usex gles2 es2 desktop)