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 CC35C13835A for ; Sat, 16 May 2020 22:38:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B792EE0924; Sat, 16 May 2020 22:38:38 +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 8CDC2E0924 for ; Sat, 16 May 2020 22:38:38 +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 6909934F614 for ; Sat, 16 May 2020 22:38:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ACDD2257 for ; Sat, 16 May 2020 22:38:32 +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: <1589668689.4410ebee118ca372a9db22dde9cfedcca6299bde.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/files/, kde-plasma/kwin/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/kwin/files/kwin-5.18.5-wayland-lockscreen-greeter.patch kde-plasma/kwin/kwin-5.18.5-r1.ebuild X-VCS-Directories: kde-plasma/kwin/files/ kde-plasma/kwin/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4410ebee118ca372a9db22dde9cfedcca6299bde X-VCS-Branch: master Date: Sat, 16 May 2020 22:38:32 +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: e67f4654-c404-44f9-8da6-1c1a2cc38794 X-Archives-Hash: 1a2e27d881cacabf117fbf77f2b2ac28 commit: 4410ebee118ca372a9db22dde9cfedcca6299bde Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat May 16 22:04:12 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat May 16 22:38:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4410ebee kde-plasma/kwin: Place lockscreen greeter above other windows KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=420802 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> .../kwin-5.18.5-wayland-lockscreen-greeter.patch | 73 ++++++++++++++++++++++ kde-plasma/kwin/kwin-5.18.5-r1.ebuild | 1 + 2 files changed, 74 insertions(+) diff --git a/kde-plasma/kwin/files/kwin-5.18.5-wayland-lockscreen-greeter.patch b/kde-plasma/kwin/files/kwin-5.18.5-wayland-lockscreen-greeter.patch new file mode 100644 index 00000000000..ac4b9d24c8e --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.18.5-wayland-lockscreen-greeter.patch @@ -0,0 +1,73 @@ +From 6f8b8efb338117ee197092e46b25b489b612257d Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Fri, 8 May 2020 11:26:27 +0300 +Subject: [wayland] Place lockscreen greeter above other windows + +Summary: BUG: 420802 + +Reviewers: #kwin, davidedmundson + +Reviewed By: #kwin, davidedmundson + +Subscribers: apol, kwin + +Tags: #kwin + +Differential Revision: https://phabricator.kde.org/D29523 +--- + abstract_client.cpp | 2 ++ + autotests/integration/lockscreen.cpp | 19 +++++++++++++++++++ + 2 files changed, 21 insertions(+) + +diff --git a/abstract_client.cpp b/abstract_client.cpp +index ca6c422..48918e7 100644 +--- a/abstract_client.cpp ++++ b/abstract_client.cpp +@@ -275,6 +275,8 @@ Layer AbstractClient::belongsToLayer() const + // Since the desktop is also activated, nothing should be in the ActiveLayer, though + if (isInternal()) + return UnmanagedLayer; ++ if (isLockScreen()) ++ return UnmanagedLayer; + if (isDesktop()) + return workspace()->showingDesktop() ? AboveLayer : DesktopLayer; + if (isSplash()) // no damn annoying splashscreens +diff --git a/autotests/integration/lockscreen.cpp b/autotests/integration/lockscreen.cpp +index e258540..82cac09 100644 +--- a/autotests/integration/lockscreen.cpp ++++ b/autotests/integration/lockscreen.cpp +@@ -62,6 +62,7 @@ private Q_SLOTS: + void initTestCase(); + void init(); + void cleanup(); ++ void testStackingOrder(); + void testPointer(); + void testPointerButton(); + void testPointerAxis(); +@@ -223,6 +224,24 @@ void LockScreenTest::cleanup() + Test::destroyWaylandConnection(); + } + ++void LockScreenTest::testStackingOrder() ++{ ++ // This test verifies that the lockscreen greeter is placed above other windows. ++ ++ QSignalSpy clientAddedSpy(waylandServer(), &WaylandServer::shellClientAdded); ++ QVERIFY(clientAddedSpy.isValid()); ++ ++ LOCK ++ QVERIFY(clientAddedSpy.wait()); ++ ++ AbstractClient *client = clientAddedSpy.first().first().value(); ++ QVERIFY(client); ++ QVERIFY(client->isLockScreen()); ++ QCOMPARE(client->layer(), UnmanagedLayer); ++ ++ UNLOCK ++} ++ + void LockScreenTest::testPointer() + { + using namespace KWayland::Client; +-- +cgit v1.1 diff --git a/kde-plasma/kwin/kwin-5.18.5-r1.ebuild b/kde-plasma/kwin/kwin-5.18.5-r1.ebuild index c755f96bbcf..0ba4084e461 100644 --- a/kde-plasma/kwin/kwin-5.18.5-r1.ebuild +++ b/kde-plasma/kwin/kwin-5.18.5-r1.ebuild @@ -96,6 +96,7 @@ RESTRICT+=" test" PATCHES=( # in Plasma/5.18 "${FILESDIR}/${P}-dont-exec-QDialog.patch" # KDE-bug 421053 + "${FILESDIR}/${P}-wayland-lockscreen-greeter.patch" # KDE-bug 420802 ) src_prepare() {