https://bugs.kde.org/show_bug.cgi?id=529238

            Bug ID: 529238
           Summary: Allow mirroring a region of an output onto another
                    output (crop source for replication)
    Classification: Plasma
           Product: kwin
      Version First 6.8.2
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: multi-screen
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

(Claude Code assisted report since I have no idea what I'm doing, I did
proofread it and tried the workarounds!)
USE CASE
My main monitor is a 5120x1440 (32:9) ultrawide (DP-4). My second monitor is
1920x1080 (HDMI-A-2). I want the second monitor to show only the centre
2560x1440 of the ultrawide, scaled to 1920x1080. I need this for two setups:
- Drawing: the canvas sits in the centre of the ultrawide at full resolution,
with reference media on the sides. My pen tablet shows only that centre, so I
draw on it without the side content being duplicated.
- Streaming to my TV: games run in the centre region of the ultrawide, and the
TV shows that region for people watching while I play on the ultrawide. I don't
have to set the TV up as a separate monitor or make sure games start on the
right output.

CURRENT BEHAVIOUR
Since Plasma 6.6, an output can be a replica of another output (bug 481222).
Replication always shows the whole source output, scaled to fit. Mirroring a
32:9 output onto a 16:9 one gives a thin letterboxed strip. There is no way to
choose a region of the source.

REQUESTED BEHAVIOUR
When an output is set as a replica, let the user choose a source rectangle on
the source output (x, y, width, height in source pixels). The default stays the
whole output. The replica shows only that rectangle, scaled to its own mode.
Expose it in the Display Configuration page next to the "Replica of" option,
and in kscreen-doctor for scripting.

WORKAROUNDS AND THEIR COSTS
- OBS: capture the monitor, crop it, show a fullscreen projector. This adds a
clearly noticeable delay.
- A screencast-portal client with GStreamer (pipewiresrc ! videocrop !
waylandsink with fullscreen-output). The crop is passed to KWin as
wp_viewporter source metadata, so nothing is copied. It still needs a running
client, an active screen-share session with its tray indicator, and a frame of
capture latency.
- wl-mirror (which has a --region option) does not work on KWin, because KWin
does not offer the capture protocols it needs (bug 513785).

A native option would remove the capture step entirely, so the mirror would
have no extra latency.

RELATED
- Bug 481222: Support proper output mirroring (implemented for 6.6)
- Bug 464147: region selection for the screencast portal

SYSTEM
Arch Linux, kernel 7.3.4, Plasma 6.8.2, KWin 6.8.2 (Wayland), GStreamer 1.28.9

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to