Bug 377107 - key translation issue connecting to Linux from Mac
Summary: key translation issue connecting to Linux from Mac
Status: RESOLVED WORKSFORME
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: Compiled Sources macOS
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 14:24 UTC by RJVB
Modified: 2022-12-03 05:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for the keysym translation issue (8.44 KB, patch)
2017-03-02 20:25 UTC, RJVB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2017-03-02 14:24:12 UTC
As far as I can tell krdc should be as cross-platform as LibVNCServer and FreeRDP are and indeed it builds and runs almost "out of the box" on Mac.

However there is a key translation issue when I connect to a VNC server on a Linux client while using the regular Cocoa QPA. The same executable runs fine when I use Qt's XCB QPA. To me that suggests that LibVNCServer is not to blame but gets fed the wrong keys. One explanation would be that QKeyEvent::nativeVirtualKey() returns a keysymbol that LibVNCServer understands, presumably X11 keysym definitions.

NB: I have not been able to test RDP for lack of a suitable server I have access to. Likewise I cannot ATM test VNC connections from Mac to Mac other than to the local server which may not be representative.
Comment 1 RJVB 2017-03-02 20:25:14 UTC
Created attachment 104328 [details]
patch for the keysym translation issue

This patch adapts the solution from http://italc.sourcearchive.com/documentation/1.0.9.1/vncview_8cpp-source.html

The test `if (QGuiApplication::platformName() == QStringLiteral("xcb"))` must probably include the wayland QPA, if that platform also returns X11/RFB keysyms from QKeyEvent::nativeVirtualKey().
Comment 2 Justin Zobel 2022-11-03 01:40:07 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-11-18 05:15:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-12-03 05:19:16 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!