mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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
|
||||
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]);
|
||||
auto pipeFileDescriptor = lPipeFds[0];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue