From: Andreas Sturmlechner Date: Tue, 17 Dec 2019 22:04:15 +0000 (+0100) Subject: kde-plasma/plasma-desktop: Fix Pager doesn't show windows of 2nd screen X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23cc71974f081f1336a61547086f64c8f2165a60;p=gentoo.git kde-plasma/plasma-desktop: Fix Pager doesn't show windows of 2nd screen KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=414849 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner --- diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-5.17.4-pager-regression.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-5.17.4-pager-regression.patch new file mode 100644 index 000000000000..d8057f22a4c2 --- /dev/null +++ b/kde-plasma/plasma-desktop/files/plasma-desktop-5.17.4-pager-regression.patch @@ -0,0 +1,25 @@ +From 2b5e86323f180f0c51ef9af898a69a522bc379ad Mon Sep 17 00:00:00 2001 +From: David Faure +Date: Sat, 14 Dec 2019 00:29:32 +0100 +Subject: Fix regression in "Port the pager applet away from QtWidgets" + +BUG: 414849 +--- + applets/pager/plugin/windowmodel.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/applets/pager/plugin/windowmodel.cpp b/applets/pager/plugin/windowmodel.cpp +index 93273bb..bcda333 100644 +--- a/applets/pager/plugin/windowmodel.cpp ++++ b/applets/pager/plugin/windowmodel.cpp +@@ -77,7 +77,7 @@ QVariant WindowModel::data(const QModelIndex &index, int role) const + if (role == AbstractTasksModel::Geometry) { + QRect windowGeo = TaskFilterProxyModel::data(index, role).toRect(); + QList screens = QGuiApplication::screens(); +- const QRect desktopGeo = screens.at(0)->geometry(); ++ const QRect desktopGeo = screens.at(0)->virtualGeometry(); + + if (KWindowSystem::mapViewport()) { + int x = windowGeo.center().x() % desktopGeo.width(); +-- +cgit v1.1 diff --git a/kde-plasma/plasma-desktop/plasma-desktop-5.17.4-r1.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-5.17.4-r1.ebuild index 34554e995197..f0f08a65f980 100644 --- a/kde-plasma/plasma-desktop/plasma-desktop-5.17.4-r1.ebuild +++ b/kde-plasma/plasma-desktop/plasma-desktop-5.17.4-r1.ebuild @@ -117,6 +117,7 @@ RDEPEND="${COMMON_DEPEND} PATCHES=( "${FILESDIR}"/${P}-activities-kcm-hidpi.patch + "${FILESDIR}"/${P}-pager-regression.patch ) src_configure() {