| Summary: | Can't mouse to bottom right portion of window after changing display scaling / moving to another display | ||
|---|---|---|---|
| Product: | [Applications] krdc | Reporter: | zac <kde> |
| Component: | VNC | Assignee: | Urs Wolfer <uwolfer> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ctrlaltca, kde |
| Priority: | NOR | ||
| Version First Reported In: | 25.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | Flatpak | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/network/krdc/-/commit/cb9e59cd62900bd4c160b05554e6a7efa5c372b7 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
zac
2025-09-02 20:48:01 UTC
Confirmed, this problem is only present on VNC connections, since VncClientThread caches the devicePixelRatio value at connection start. This causes the remote image to not respect DPI screen changes, so if you move the window to a screen with a lower DPI its on-screen dimension stays the same (instead of getting resized accordingly to the DPI change value). A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/210 Git commit 234371c906f4ae3b8e1768a9124fce66a8ed4ba3 by Fabio Bas. Committed on 15/09/2025 at 08:44. Pushed by ctrlaltca into branch 'master'. Remoteview: detect DPI changes and inform the remoteview implementation. VNC: on DPI change update the devixePixelratio used for the remote image and force a full redraw Fixes the VNC view not resizing accordingly when moved on screens with a different DPI Fixes the VNC view sending wrong coordinates for mouse updates to the remote server M +6 -0 core/remoteview.cpp M +1 -0 core/remoteview.h M +11 -0 vnc/vncclientthread.cpp M +6 -0 vnc/vncclientthread.h M +5 -0 vnc/vncview.cpp M +1 -0 vnc/vncview.h https://invent.kde.org/network/krdc/-/commit/234371c906f4ae3b8e1768a9124fce66a8ed4ba3 Git commit cb9e59cd62900bd4c160b05554e6a7efa5c372b7 by Fabio Bas. Committed on 15/09/2025 at 08:46. Pushed by ctrlaltca into branch 'release/25.08'. Remoteview: detect DPI changes and inform the remoteview implementation. VNC: on DPI change update the devixePixelratio used for the remote image and force a full redraw Fixes the VNC view not resizing accordingly when moved on screens with a different DPI Fixes the VNC view sending wrong coordinates for mouse updates to the remote server (cherry picked from commit 234371c906f4ae3b8e1768a9124fce66a8ed4ba3) 14a7e3d8 Remoteview: detect DPI changes and inform the remoteview implementation. dddd6e92 Fix QTONLY build (running on ubuntu 22.04 with Qt6.2, yay!) Co-authored-by: Fabio Bas <ctrlaltca@gmail.com> M +6 -0 core/remoteview.cpp M +1 -0 core/remoteview.h M +11 -0 vnc/vncclientthread.cpp M +6 -0 vnc/vncclientthread.h M +5 -0 vnc/vncview.cpp M +1 -0 vnc/vncview.h https://invent.kde.org/network/krdc/-/commit/cb9e59cd62900bd4c160b05554e6a7efa5c372b7 |