-
Notifications
You must be signed in to change notification settings - Fork 292
Description
This issue has been migrated from old Barrier Github repository debauchee/barrier#1280
Issue created on: 2021-09-07 by @steelman
Issue last updated on: 2021-11-05
What happened?
- Set keyboard layout on Linux (X11) to Polish
setxkbmap pl
- Start barrier server on Linux and the client on Windows (10)
- Move mouse to Windows client and start typing
- Type Alt_R+l (lowercase L) on Linux keyboard to get "ł" on Windows (or Alt_R+[acenosxz] for "ąćęńóśźż" resp., doesn't work for uppercase too)
- The character does not appear on Windows.
Workaround:
- Use us keyboard layout on Linux (
setxkbmap us
)
Version
v2.3.3
Git commit hash (if applicable)
No response
If applicable, where did you install Barrier from?
Linux: from Debian 10 repo
Windows: from GH release
What OSes are you seeing the problem on? (Check all that apply)
Linux, Windows
What OS versions are you using?
- Debian 10
- Windows 10
Relevant log output
* With Polish keymap
xev(1) output for Alt_R+l:
KeyPress event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346348511, (452,431), root:(454,453),
state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346349367, (452,431), root:(454,453),
state 0x80, keycode 46 (keysym 0x1b3, lstroke), same_screen YES,
XLookupString gives 2 bytes: (c5 82) "ł"
XmbLookupString gives 2 bytes: (c5 82) "ł"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346349447, (452,431), root:(454,453),
state 0x80, keycode 46 (keysym 0x1b3, lstroke), same_screen YES,
XLookupString gives 2 bytes: (c5 82) "ł"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346351175, (452,431), root:(454,453),
state 0x80, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XFilterEvent returns: False
Barrier Server:
[2021-09-06T11:11:22] DEBUG1: new mask: 0x0000
[2021-09-06T11:11:22] DEBUG1: event: KeyPress code=108, state=0x0000
[2021-09-06T11:11:22] DEBUG1: onKeyDown id=61310 mask=0x0000 button=0x006c
[2021-09-06T11:11:22] DEBUG1: send key down to "CLNT" id=61310, mask=0x0000, button=0x006c
[2021-09-06T11:11:23] DEBUG1: new mask: 0x0020
[2021-09-06T11:11:23] DEBUG1: event: KeyPress code=46, state=0x0080
[2021-09-06T11:11:23] DEBUG1: onKeyDown id=322 mask=0x0020 button=0x002e
[2021-09-06T11:11:23] DEBUG1: send key down to "CLNT" id=322, mask=0x0020, button=0x002e
[2021-09-06T11:11:23] DEBUG1: new mask: 0x0020
[2021-09-06T11:11:23] DEBUG1: event: KeyRelease code=46, state=0x0080
[2021-09-06T11:11:23] DEBUG1: onKeyUp id=322 mask=0x0020 button=0x002e
[2021-09-06T11:11:23] DEBUG1: send key up to "CLNT" id=322, mask=0x0020, button=0x002e
[2021-09-06T11:11:23] DEBUG1: new mask: 0x0020
[2021-09-06T11:11:23] DEBUG1: event: KeyRelease code=108, state=0x0080
[2021-09-06T11:11:23] DEBUG1: onKeyUp id=61310 mask=0x0020 button=0x006c
[2021-09-06T11:11:23] DEBUG1: send key up to "CLNT" id=61310, mask=0x0020, button=0x006c
Barrier Client:
[2021-09-06T12:07:06] DEBUG1: recv key down id=0x0000ef7e, mask=0x0000, button=0x006c
[2021-09-06T12:07:06] DEBUG1: mapKey ef7e (61310) with mask 0000, start state: 2000
[2021-09-06T12:07:06] DEBUG1: key ef7e is not on keyboard
[2021-09-06T12:07:06] DEBUG1: recv key down id=0x00000142, mask=0x0020, button=0x002e
[2021-09-06T12:07:06] DEBUG1: mapKey 0142 (322) with mask 0020, start state: 2000
[2021-09-06T12:07:06] DEBUG1: no mapping for key 0142
[2021-09-06T12:07:06] DEBUG1: recv key up id=0x0000ef7e, mask=0x0020, button=0x006c
[2021-09-06T12:07:06] DEBUG1: recv key up id=0x0000006c, mask=0x0000, button=0x0000
* With US keymap
xev(1) output for Alt_R+l:
KeyPress event, serial 33, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346405527, (561,752), root:(563,774),
state 0x0, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346405967, (561,752), root:(563,774),
state 0x8, keycode 46 (keysym 0x6c, l), same_screen YES,
XLookupString gives 1 bytes: (6c) "l"
XmbLookupString gives 1 bytes: (6c) "l"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346406119, (561,752), root:(563,774),
state 0x8, keycode 46 (keysym 0x6c, l), same_screen YES,
XLookupString gives 1 bytes: (6c) "l"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x6200001,
root 0x157, subw 0x0, time 346407503, (561,752), root:(563,774),
state 0x8, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Barrier Server:
[2021-09-06T11:17:25] DEBUG1: event: KeyPress code=108, state=0x0000
[2021-09-06T11:17:25] DEBUG1: onKeyDown id=61418 mask=0x0000 button=0x006c
[2021-09-06T11:17:25] DEBUG1: send key down to "CLNT" id=61418, mask=0x0000, button=0x006c
[2021-09-06T11:17:26] DEBUG1: new mask: 0x0004
[2021-09-06T11:17:26] DEBUG1: event: KeyPress code=46, state=0x0008
[2021-09-06T11:17:26] DEBUG1: onKeyDown id=108 mask=0x0004 button=0x002e
[2021-09-06T11:17:26] DEBUG1: send key down to "CLNT" id=108, mask=0x0004, button=0x002e
[2021-09-06T11:17:26] DEBUG1: new mask: 0x0004
[2021-09-06T11:17:26] DEBUG1: event: KeyRelease code=46, state=0x0008
[2021-09-06T11:17:26] DEBUG1: onKeyUp id=108 mask=0x0004 button=0x002e
[2021-09-06T11:17:26] DEBUG1: send key up to "CLNT" id=108, mask=0x0004, button=0x002e
[2021-09-06T11:17:26] DEBUG1: new mask: 0x0004
[2021-09-06T11:17:26] DEBUG1: event: KeyRelease code=108, state=0x0008
[2021-09-06T11:17:26] DEBUG1: onKeyUp id=61418 mask=0x0004 button=0x006c
[2021-09-06T11:17:26] DEBUG1: send key up to "CLNT" id=61418, mask=0x0004, button=0x006c
Client:
[2021-09-06T12:07:48] DEBUG1: recv key down id=0x0000efea, mask=0x0000, button=0x006c
[2021-09-06T12:07:48] DEBUG1: mapKey efea (61418) with mask 0000, start state: 2000
[2021-09-06T12:07:48] DEBUG1: find best: 2000 0000
[2021-09-06T12:07:48] DEBUG1: best key index 1 of 1 (exact)
[2021-09-06T12:07:48] DEBUG1: found key in group 0
[2021-09-06T12:07:48] DEBUG1: state: 2000,0000,0000
[2021-09-06T12:07:48] DEBUG1: flip: 0000 (2000 vs 0000 in 0000 - 0000)
[2021-09-06T12:07:48] DEBUG1: desired state: 0000 2000,0000,0000
[2021-09-06T12:07:48] DEBUG1: flip: 0000 (2000 vs 0000 in fffb - 6020)
[2021-09-06T12:07:48] DEBUG1: mapped to 138, new state 2004
[2021-09-06T12:07:48] DEBUG1: keystrokes:
[2021-09-06T12:07:48] DEBUG1: 138 (000000a5) down
[2021-09-06T12:07:48] DEBUG1: recv key down id=0x0000006c, mask=0x0004, button=0x002e
[2021-09-06T12:07:48] DEBUG1: mapKey 006c (108) with mask 0004, start state: 2004
[2021-09-06T12:07:48] INFO: found key in group 0
[2021-09-06T12:07:48] DEBUG1: state: 2004,0000,0000
[2021-09-06T12:07:48] DEBUG1: flip: 0000 (2004 vs 0000 in 0000 - 0000)
[2021-09-06T12:07:48] DEBUG1: desired state: 0004 2004,0000,1007
[2021-09-06T12:07:48] DEBUG1: flip: 0000 (2004 vs 0004 in ffff - 6020)
[2021-09-06T12:07:48] DEBUG1: mapped to 026, new state 2004
[2021-09-06T12:07:48] DEBUG1: keystrokes:
[2021-09-06T12:07:48] DEBUG1: 026 (0000004c) down
[2021-09-06T12:07:48] DEBUG1: recv key up id=0x0000efea, mask=0x0004, button=0x006c
[2021-09-06T12:07:48] DEBUG1: new state 2000
[2021-09-06T12:07:48] DEBUG1: keystrokes:
[2021-09-06T12:07:48] DEBUG1: 138 (000000a5) up
Any other information
No response
Commented on: 2021-09-14 by @FliesWithWind
Same thing is happening to me, running both client and server on Windows.
Workaround seems to be working.
Commented on: 2021-10-12 by @DanielJoyce
What's the keyboard layout on windows? is it US or PL as well? if it's sending RAW keycodes, and Linux was PL and windows was US, I'd expect the keypresses to be interpreted differently on the windows side.
Commented on: 2021-10-12 by @steelman
It's PL on Windows.
Commented on: 2021-11-05 by @JakubRakus
Have the same problem, but server and client both have the same OS (Ubuntu 20.04), keyboard layout PL and barrier version 2.3.3, installed from official repositories.