mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 22:01:23 -06:00
[GH-ISSUE #1114] Cursor locking doesn't work when using secondary keyboard layout, a key event is sent instead #893
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#893
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @epakai on GitHub (Apr 2, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1114
Describe the bug
Pressing Scroll lock (for lock cursor to screen) while using my secondary keyboard layout sends a keypress instead of activating the cursor lock.
My server is Linux, with a Windows client. Host keyboard layouts are US,Dvorak and US,Basic (no variant). I don't think the particular layout has anything to do with this bug though. It feels more like some state is being set that affects a check in barrier. For example I also saw this same issue mentioned in this comment when using a Czech layout:
https://github.com/debauchee/barrier/issues/1005#issuecomment-761838291
To Reproduce
Steps to reproduce the behavior:
Example config:
Expected behavior
Cursor lock should be enabled after pressing scroll lock.
Desktop (please complete the following information):
Server:
Client:
Additional context
Workaround: It's possible to switch to the primary keyboard layout, apply the cursor lock, then toggle keyboard layouts again to work on a client with cursor locked and the second layout.
The key id sent from the server log looks like:
The key id received on the client log looks like:
Additional mentions of this keycode and bug were in these issue comments. One from synergy, and one from barrier:
https://github.com/symless/synergy-core/issues/6059#issuecomment-313870115
https://github.com/debauchee/barrier/issues/1005#issuecomment-761838291