LibVNC / x11vnc

a VNC server for real X displays
GNU General Public License v2.0
712 stars 139 forks source link

Wrong keyboard input when there are multiple keyboard layouts #217

Open twaik opened 1 year ago

twaik commented 1 year ago

Describe the bug When running x11vnc on a X server that has multiple keyboard layouts it inputs text wrong. For some reason if X server has language layout it does not switch to this layout if it has symbols of it.

To Reproduce

  1. Install RealVNC Viewer (com.realvnc.viewer.android) on phone if you have Android.

  2. Select English, Russian, Hebrew layouts for your keyboard.

  3. On your PC select English and Russian layouts (w/o hebrew).

  4. Open any text editor (prefer X11, not vi/nano/etc.)

  5. Start x11vnc.

  6. Focus editor.

  7. On phone open RealVNC Viewer and connect to PC.

  8. On PC switch to english layout.

  9. Try to type with english symbols on phone. Everything is right.

  10. Try to type hebrew symbols. Everything is still right.

  11. Try to type russian symbols. You will see english symbols instead of russian in editor.

  12. Now on PC switch to russian layout.

  13. Try to type english symbols. You will see some russian symbols on your screen.

  14. Try to type hebrew symbols. Everything is right.

  15. Try to type russian symbols. Everything is right.

Expected Behavior Typed symbols should fit to symbols were typed.

Screenshots I am not sure it is applicable there...

Desktop (please complete the following information):

Additional context

twaik commented 1 year ago

There is something wrong. Key combinations (like Ctrl+C in terminal) work with two first layouts in list, but not third...