mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
panel: ask KWin for native resolution screenshots
Potentially fixes the broken screenshots with GLES
This commit is contained in:
parent
be17e3d69b
commit
9711d4af10
1 changed files with 6 additions and 1 deletions
|
|
@ -197,7 +197,12 @@ void PhonePanel::takeScreenshot()
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't have access to the ScreenPool so we'll just take the first screen
|
// We don't have access to the ScreenPool so we'll just take the first screen
|
||||||
auto pendingCall = m_screenshotInterface->CaptureScreen(qGuiApp->screens().constFirst()->name(), {}, QDBusUnixFileDescriptor(lPipeFds[1]));
|
QVariantMap options;
|
||||||
|
options.insert(QStringLiteral("native-resolution"), true);
|
||||||
|
|
||||||
|
auto pendingCall = m_screenshotInterface->CaptureScreen(
|
||||||
|
qGuiApp->screens().constFirst()->name(), options,
|
||||||
|
QDBusUnixFileDescriptor(lPipeFds[1]));
|
||||||
close(lPipeFds[1]);
|
close(lPipeFds[1]);
|
||||||
auto pipeFileDescriptor = lPipeFds[0];
|
auto pipeFileDescriptor = lPipeFds[0];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue