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 26374138350 for ; Thu, 2 Apr 2020 21:19:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56BEEE0A9A; Thu, 2 Apr 2020 21:19:03 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 2348CE0A9A for ; Thu, 2 Apr 2020 21:19:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 43D0234EFBA for ; Thu, 2 Apr 2020 21:19:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6CF9A150 for ; Thu, 2 Apr 2020 21:19:00 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1585862329.aab03537c23183b3cfd04c5d5524d89fb7ecc004.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/firefox-bin/, www-client/firefox-bin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/firefox-bin/files/firefox-bin.sh www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild www-client/firefox-bin/firefox-bin-68.6.0-r2.ebuild www-client/firefox-bin/firefox-bin-74.0-r1.ebuild www-client/firefox-bin/firefox-bin-74.0-r2.ebuild X-VCS-Directories: www-client/firefox-bin/ www-client/firefox-bin/files/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: aab03537c23183b3cfd04c5d5524d89fb7ecc004 X-VCS-Branch: master Date: Thu, 2 Apr 2020 21:19:00 +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: 60f3c7c5-43b9-4720-98a6-0915a944314d X-Archives-Hash: 7992dafe3fcc9246e4343386daf146e9 commit: aab03537c23183b3cfd04c5d5524d89fb7ecc004 Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Apr 2 21:11:46 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Apr 2 21:18:49 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aab03537 www-client/firefox-bin: don't enable XINPUT2 for KWin users Bug: https://bugs.gentoo.org/715604 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann gentoo.org> www-client/firefox-bin/files/firefox-bin.sh | 20 +++++++++++++++++++- ...68.6.0-r1.ebuild => firefox-bin-68.6.0-r2.ebuild} | 0 ...bin-74.0-r1.ebuild => firefox-bin-74.0-r2.ebuild} | 0 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/www-client/firefox-bin/files/firefox-bin.sh b/www-client/firefox-bin/files/firefox-bin.sh index 15f95487feb..baa6487a166 100644 --- a/www-client/firefox-bin/files/firefox-bin.sh +++ b/www-client/firefox-bin/files/firefox-bin.sh @@ -83,7 +83,25 @@ fi ## ## Enable Xinput2 (#617344) ## -export MOZ_USE_XINPUT2=1 + +# respect user settings +MOZ_USE_XINPUT2=${MOZ_USE_XINPUT2:-auto} + +if [[ ${MOZ_USE_XINPUT2} == auto && -n ${WAYLAND_DISPLAY} ]]; then + # enabling XINPUT2 should be safe for all wayland users + MOZ_USE_XINPUT2=1 +elif [[ ${MOZ_USE_XINPUT2} == auto && ${XDG_CURRENT_DESKTOP^^} == KDE ]]; then + # XINPUT2 is known to cause problems for KWin users + MOZ_USE_XINPUT2=0 +elif [[ ${MOZ_USE_XINPUT2} == auto && ${XDG_CURRENT_DESKTOP^^} == LXQT ]]; then + # LXQt uses KWin + MOZ_USE_XINPUT2=0 +elif [[ ${MOZ_USE_XINPUT2} == auto ]]; then + # should work on Mate, Xfce, FluxBox, OpenBox and all the others ... + MOZ_USE_XINPUT2=1 +fi + +[[ ${MOZ_USE_XINPUT2} != 0 ]] && export MOZ_USE_XINPUT2=${MOZ_USE_XINPUT2} # Don't throw "old profile" dialog box. export MOZ_ALLOW_DOWNGRADE=1 diff --git a/www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild b/www-client/firefox-bin/firefox-bin-68.6.0-r2.ebuild similarity index 100% rename from www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild rename to www-client/firefox-bin/firefox-bin-68.6.0-r2.ebuild diff --git a/www-client/firefox-bin/firefox-bin-74.0-r1.ebuild b/www-client/firefox-bin/firefox-bin-74.0-r2.ebuild similarity index 100% rename from www-client/firefox-bin/firefox-bin-74.0-r1.ebuild rename to www-client/firefox-bin/firefox-bin-74.0-r2.ebuild