Summary: | Screenshot only contains bottom-left quarter in 200% scaled Wayland session | ||
---|---|---|---|
Product: | [Plasma] xdg-desktop-portal-kde | Reporter: | hexchain <kde> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | aleixpol, jgrulich, nate |
Priority: | NOR | ||
Version: | 5.26.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
what I get
The buggy screenshot |
Description
hexchain
2022-10-24 04:55:01 UTC
With a 4k screen at 200% scale, I cannot reproduce this issue myself using the xdg-portal-test-kde testing app. (In reply to Nate Graham from comment #1) > With a 4k screen at 200% scale, I cannot reproduce this issue myself using > the xdg-portal-test-kde testing app. Where can I find this app? Never mind, I found it. But with this app I still get the exact same result. In Plasma 5.26.90, taking a screenshot through xdg-portal-test-kde (either inside or outside flatpak) on a 3840x2160 200% screen gives me a picture of the whole screen but scaled down to 1080p. Is this the correct/intended behavior? Created attachment 155857 [details]
what I get
I cannot reproduce, the image seems to be the correct resolution (that is on master, so please compare with 5.27 at least).
I wonder if we could/should just be launching spectacle here, this looks a bit ridiculous...
Created attachment 155868 [details]
The buggy screenshot
This is what I have with xdg-desktop-portal-kde 5.26.90.
I see where the problem is. In your screenshot, the area is set to "Current Screen", which makes the portal call org.kde.kwin.Screenshot.screenshotScreen(fd, bool). Inside this method in KWin, the screenshot flag is initialized with ScreenShotNativeResolution, and the result buffer is scaled according to dpr. If the area is "Full Screen", the portal will call screenshotFullscreen(fd, bool), which does not have the native resolution flag, so the result buffer will be the same as the logical size. |