Bug 504673 - Client mouse doesn't match host screen position.
Summary: Client mouse doesn't match host screen position.
Status: REPORTED
Alias: None
Product: krfb
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: George Goldberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-22 16:46 UTC by edgley
Modified: 2025-07-23 01:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screen setup. (3.15 MB, image/png)
2025-05-22 16:46 UTC, edgley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edgley 2025-05-22 16:46:28 UTC
Created attachment 181655 [details]
Screen setup.

I'm using KDE Neon.  I have a dual monitor setup.  My left monitor is vertically mounted (1920x1080), and my right monitor is horizontally mounted (1920x1080) and is the primary.  When I connect with KRFB (using my phone or outside work computer), then it shows the primary monitor... I can live with not being able to view the left monitor... However, on the client VNC session my mouse position does not match the position on the host computer.  The mouse position on the client is about a half screen to the right of where it's actually hovering/clicking on the host machine. (eg. Clicking/hovering on the far right of the client's remote screen generates a click/hover around the centre of the host machine.)   Switching between screen capture modes of "xcb" or "pw" doesn't seem to help.

I used to get around this by showing both screens using a third screen capture mode ("qt0" or something like that), but it's been unavailable since some KDE Neon upgrade.

SUMMARY
Mouse position doesn't match on client and host when using multiple monitors.

STEPS TO REPRODUCE
1. Set up your screens as I have described (or see attached image)
2. Connect.
3. 

OBSERVED RESULT
Mouse position doesn't match between host and client (see above)

EXPECTED RESULT
Mouse position matches between host and client.

SOFTWARE/OS VERSIONS
Windows:  N/A
macOS:  N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: KDE Neon 6.2
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-52-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
N/A
Comment 1 Shad Sterling 2025-07-23 01:31:04 UTC
Having a similar problem trying to connect to krfb from macOS Screen Sharing.

Using `pw` the real position is below and to the right of the apparent position (of both the Plasma mouse pointer and the macOS mouse pointer, which are drawn so the Plasma pointer is hidden beneath the macOS pointer, except briefly when the Plasma pointer position lags behind the macOS pointers movement).  It is not possible to open the menu by clicking in the bottom left corner.

Trying to switch to `xcb` didn't seem to work; after restarting krfb the setting was still on `pw`

Host:
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.35+deb13-amd64 (64-bit)
Graphics Platform: offscreen
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 86.2 GiB of RAM

Remote:
macOS Sequoia 15.5 (24F74)