Commit a91f88d5 authored by Méven Car's avatar Méven Car
Browse files

Wayland: when screens have same dpr use NativeSize

For GrabMode::AllScreens

BUG: 440226
parent dd88afd3
......@@ -288,7 +288,7 @@ void PlatformKWinWayland2::doGrab(ShutterMode, GrabMode theGrabMode,
switch (theGrabMode) {
case GrabMode::AllScreens:
takeScreenShotArea(workArea(), flags & ~ScreenShotFlags(ScreenShotFlag::NativeSize));
takeScreenShotArea(workArea(), flags);
break;
case GrabMode::CurrentScreen:
takeScreenShotInteractive(InteractiveKind::Screen, flags);
......@@ -297,7 +297,7 @@ void PlatformKWinWayland2::doGrab(ShutterMode, GrabMode theGrabMode,
takeScreenShotInteractive(InteractiveKind::Window, flags);
break;
case GrabMode::AllScreensScaled:
takeScreenShotArea(workArea(), flags);
takeScreenShotArea(workArea(), flags & ~ScreenShotFlags(ScreenShotFlag::NativeSize));
break;
case GrabMode::PerScreenImageNative:
takeScreenShotScreens(QGuiApplication::screens(), flags);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment