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

            Bug ID: 528639
           Summary: KRDP pointer input lands on the wrong monitor (monitor
                    offset ignored)
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Description:
When krdpserver runs in Plasma mode (--plasma) and streams a non-first monitor
with --monitor 1, the video stream correctly shows the selected monitor, but
pointer input from the RDP client moves the cursor on the other monitor (the
one at position 0,0) instead of the streamed one.

The same setup in portal mode (same command without --plasma) works correctly:
the pointer moves on the streamed monitor.

Streaming monitor 0 (--plasma --monitor 0) works correctly as well, which
suggests the absolute pointer coordinates are applied in global compositor
space without adding the position of the streamed output.

STEPS TO REPRODUCE
1. Dual monitor setup, both 2560x1440, scale 1:
   - DP-2 at 0,0 (priority 1)
   - HDMI-A-4 at 2560,0 (priority 2)
2. Run: krdpserver --plasma --monitor 1 --port 3390
3. Connect with FreeRDP 3:
   xfreerdp /v:<host>:3390 /u:<user> +clipboard /gfx:AVC420
4. Move the mouse inside the client window.

OBSERVED RESULT
The stream shows HDMI-A-4 (correct monitor), but the cursor moves on DP-2.

EXPECTED RESULT
The cursor moves on HDMI-A-4, the monitor being streamed.

WORKAROUND
Run the instance for the second monitor in portal mode:
krdpserver --monitor 1 --port 3390
Pointer input is then mapped to the correct monitor.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44 (KDE Plasma Desktop Edition)
Kernel: 7.2.15-200.fc44.x86_64
Graphics Platform: Wayland
krdp: 6.8.2
KWin: 6.8.2
kpipewire: 6.8.2
xdg-desktop-portal-kde: 6.8.2
Qt: 6.11.2
Client: FreeRDP 3.x (xfreerdp, Fedora 44)
GPU: Intel UHD Graphics 770 (Raptor Lake-S), VAAPI H.264 encoding

ADDITIONAL INFORMATION
Possibly related to bug 523974 (mouse input issues in multi monitor setup /
virtual monitor with --plasma), where a fix was reported to exist on the 6.7
branch and master but not on Plasma/6.8. If this is the same root cause, feel
free to mark as duplicate.

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

Reply via email to