Bug 438007

Summary: Mouse cursor on wrong screen when remote controlling desktop
Product: [Applications] krfb Reporter: Jens <jens-bugs.kde.org>
Component: generalAssignee: George Goldberg <grundleborg>
Status: REPORTED ---    
Severity: normal CC: bugs, denilsonsa, mwaterbu
Priority: NOR    
Version: 21.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jens 2021-06-02 18:09:02 UTC
SUMMARY
I have a dual monitor setup where my primary screen is on the right.
When I use krfb using any remote desktop client app, I can see the mouse cursor on the client screen in the right desktop, but in fact the mouse cursor on the server is on the left desktop - and clicks also go to the left.


STEPS TO REPRODUCE
1. Setup dual monitor system (in my case, 1: 1920x1080, 2: 2540x1440 left of 1)
2. install krfb
3. connect using any client app

OBSERVED RESULT
see above

EXPECTED RESULT
Both screens should be visible on the client app, and mouse cursor on client and server screens should match.

SOFTWARE/OS VERSIONS:
KDE Neon most current update
Comment 1 csbugs 2022-01-21 13:31:27 UTC
We can confirm this bug with krfb 20.04.2 from Opensuse Leap 15.3. 
Maybe this developer talk helps? https://forum.kde.org/viewtopic.php?f=18&t=108986
Comment 2 Mark 2022-06-01 22:51:38 UTC
I can also confirm this with krfb 21.12.3. Any workarounds, outside of changing my primary monitor?
Comment 3 Denilson F. de Sá 2023-12-26 13:57:32 UTC
This is still a problem on the latest KDE on Manjaro Linux.

Related:
- https://bugs.kde.org/show_bug.cgi?id=313170
- https://invent.kde.org/network/krfb/-/issues/1

Unfortunately, due to these bugs, Krfb is unusable on computers having multiple displays.
Comment 4 Denilson F. de Sá 2023-12-26 16:38:04 UTC
FYI, I've done a quick solution on the QtFrameBuffer backend, it's available on my fork on invent.kde.org. I do not intend on working on it any further, someone else can please pick it up and continue from there.

https://invent.kde.org/network/krfb/-/issues/1#note_838828
https://invent.kde.org/denilsonsa/krfb/-/commit/e335eb9f880c7a222aedf312a88c7e6e3639ee9f
https://invent.kde.org/denilsonsa/krfb/-/commits/virtualdesktop/