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) {