From a3d8270e909365a766c6aabd442ec00f5fca889f Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 8 Feb 2020 17:37:01 +0100 Subject: [PATCH] Revert "Workaround KWin screenshot bug by using screenArea manually" This reverts commit a0b8a970ef3bc89cfbcb3d44f7ea2200e2ee3886. The workaround didn't work anyway. - The bug also affects Qt/QScreen ... --- containments/panel/phonepanel.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/containments/panel/phonepanel.cpp b/containments/panel/phonepanel.cpp index ab9d43d4..3455fffc 100644 --- a/containments/panel/phonepanel.cpp +++ b/containments/panel/phonepanel.cpp @@ -22,10 +22,8 @@ #include #include -#include #include -#include -#include +#include #include #include #include @@ -83,11 +81,7 @@ void PhonePanel::toggleTorch() void PhonePanel::takeScreenshot() { auto *interface = new org::kde::kwin::Screenshot(QStringLiteral("org.kde.KWin"), QStringLiteral("/Screenshot"), QDBusConnection::sessionBus(), this); - - // screenshot fullscreen currently doesn't work on all devices -> we need to use screenshot area - // this won't work with multiple screens - QSize screenSize = QGuiApplication::primaryScreen()->size(); - QDBusPendingReply reply = interface->screenshotArea(0, 0, screenSize.width(), screenSize.height()); + QDBusPendingReply reply = interface->screenshotFullscreen(); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *watcher) {