public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/
Date: Tue,  4 Sep 2018 12:25:59 +0000 (UTC)	[thread overview]
Message-ID: <1536063946.c238ad1a982cc26cc3a8aef14a8ee6d2b2adfe4b.asturm@gentoo> (raw)

commit:     c238ad1a982cc26cc3a8aef14a8ee6d2b2adfe4b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  4 12:13:22 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep  4 12:25:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c238ad1a

kde-plasma/plasma-desktop: Fix activity switcher autohide

Closes: https://bugs.gentoo.org/663032
Package-Manager: Portage-2.3.48, Repoman-2.3.10

 .../plasma-desktop-5.13.5-activityswitcher.patch   | 62 ++++++++++++++++++++++
 .../plasma-desktop/plasma-desktop-5.13.5.ebuild    |  2 +
 2 files changed, 64 insertions(+)

diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-5.13.5-activityswitcher.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-5.13.5-activityswitcher.patch
new file mode 100644
index 00000000000..a495b075ca6
--- /dev/null
+++ b/kde-plasma/plasma-desktop/files/plasma-desktop-5.13.5-activityswitcher.patch
@@ -0,0 +1,62 @@
+From c1f3b45cabe0cf89e13a5b1c9b7a673992320826 Mon Sep 17 00:00:00 2001
+From: Thomas Surrel <thomas.surrel@protonmail.com>
+Date: Tue, 22 May 2018 14:20:25 -0600
+Subject: Activity switcher auto-hide when using Meta-Tab
+
+Summary:
+Commit 174aa217180434ab93b899d9c7cf967bd2daff7e created a new
+issue where the activity switcher would not hide anymore when
+switching activities with the Meta-Tab global shortcut and
+releasing the keys under one second.
+
+This patch fixes this by unconditionnal toggling the activity
+switcher visibility if it should be hidden, but keeping the
+timestamp condition before showing it, so that both Meta-q and
+Meta-Tab behaves correctly.
+
+BUG: 393912
+
+Reviewers: mart, ngraham
+
+Reviewed By: mart, ngraham
+
+Subscribers: ngraham, plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D13012
+---
+ desktoppackage/contents/views/Desktop.qml | 13 ++++++-------
+ 1 file changed, 6 insertions(+), 7 deletions(-)
+
+diff --git a/desktoppackage/contents/views/Desktop.qml b/desktoppackage/contents/views/Desktop.qml
+index 3272a89..3539050 100644
+--- a/desktoppackage/contents/views/Desktop.qml
++++ b/desktoppackage/contents/views/Desktop.qml
+@@ -73,17 +73,16 @@ Item {
+     property int lastToggleActivityManagerTimestamp: 0
+ 
+     function toggleActivityManager() {
+-        var currentTimestamp = new Date().getTime() / 1000;
++        if (sidePanelStack.state == "activityManager") {
++            sidePanelStack.state = "closed";
++        } else {
++            var currentTimestamp = new Date().getTime() / 1000;
+ 
+-        if (currentTimestamp - lastToggleActivityManagerTimestamp > 1) {
+-            if (sidePanelStack.state == "activityManager") {
+-                sidePanelStack.state = "closed";
+-            } else {
++            if (currentTimestamp - lastToggleActivityManagerTimestamp > 1) {
+                 sidePanelStack.state = "activityManager";
+                 sidePanelStack.setSource(Qt.resolvedUrl("../activitymanager/ActivityManager.qml"))
++                lastToggleActivityManagerTimestamp = currentTimestamp;
+             }
+-
+-            lastToggleActivityManagerTimestamp = currentTimestamp;
+         }
+     }
+ 
+-- 
+cgit v0.11.2
+

diff --git a/kde-plasma/plasma-desktop/plasma-desktop-5.13.5.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-5.13.5.ebuild
index 649e0d876dc..6074f6affe7 100644
--- a/kde-plasma/plasma-desktop/plasma-desktop-5.13.5.ebuild
+++ b/kde-plasma/plasma-desktop/plasma-desktop-5.13.5.ebuild
@@ -124,6 +124,8 @@ RDEPEND="${COMMON_DEPEND}
 	!kde-plasma/systemsettings:4
 "
 
+PATCHES=( "${FILESDIR}/${P}-activityswitcher.patch" )
+
 src_configure() {
 	local mycmakeargs=(
 		$(cmake-utils_use_find_package appstream AppStreamQt)


             reply	other threads:[~2018-09-04 12:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 12:25 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-18 20:09 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/ Andreas Sturmlechner
2024-11-18 20:09 Andreas Sturmlechner
2023-12-23 18:30 Andreas Sturmlechner
2023-02-01  9:47 Andreas Sturmlechner
2023-01-15 14:36 Andreas Sturmlechner
2022-11-30  1:44 Sam James
2022-10-10 12:23 Andreas Sturmlechner
2022-10-10 12:23 Andreas Sturmlechner
2022-10-10  9:54 Andreas Sturmlechner
2022-08-07 15:51 Andreas Sturmlechner
2022-07-11 16:00 Andreas Sturmlechner
2022-04-18 14:17 Andreas Sturmlechner
2022-02-19 16:27 Andreas Sturmlechner
2021-09-16 11:14 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-01-12 16:20 Andreas Sturmlechner
2018-11-29 13:51 Andreas Sturmlechner
2018-11-29 10:09 Andreas Sturmlechner
2015-12-09 11:53 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536063946.c238ad1a982cc26cc3a8aef14a8ee6d2b2adfe4b.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox