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

            Bug ID: 529138
           Summary: Sharing a virtual output through the screen sharing
                    portal resizes the virtual output
    Classification: Plasma
           Product: kwin
      Version First 6.8.3
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: screencasting
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
I shared a virtual output (1440x2560, created by an app with
stream_virtual_output) in a Discord call through the screen sharing portal.
The virtual output became 320x240. Its mode list now has only 320x240, the
windows on it were resized, and it stayed 320x240 after I stopped sharing.

STEPS TO REPRODUCE
1. Create a virtual output (e.g. 1000x700) with
   zkde_screencast_unstable_v1.stream_virtual_output and read its PipeWire
node.
2. Share that output through the portal (it opens a second stream with
   stream_output) and read it at a small size, e.g.
   gst-launch-1.0 pipewiresrc path=<node> ! videoscale !
video/x-raw,width=320,height=240 ! fakesink
3. Run kscreen-doctor -o.

OBSERVED RESULT
The virtual output is resized to 320x240 and stays that size after the second
stream is closed.

EXPECTED RESULT
Only the stream that created the virtual output can change its size and
scale. Other streams get frames of the current size and scale them, like for
a physical monitor.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0
Kernel Version: 7.3.4-zen2-2-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
OutputScreenCastSource::followsStreamSize() returns m_output->canResize(),
which is true for every stream of a virtual output, not only the one that
created it. The resizing comes from MR !7932 (size) and !10190 (scale).
I'm going to submit a fix in a merge request soon.

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

Reply via email to