debauchee / barrier

Open-source KVM software
Other
27.73k stars 1.52k forks source link

Modifiers keys doesn't work if bluetooth in server is disabled #1545

Open icpgithub opened 2 years ago

icpgithub commented 2 years ago

What happened?

Hi,

I'm using barrier 2.3.2 on Sierra (10.12) as server and same version on Monterey (12.1) as client (using 2.4.0 on client doesn't help with this issue). I can't use another barrier version on sierra, it just doesn't launch.

The server has a Magic mouse (bluetooth) and a USB Apple Keyboard. As the mouse delay in barrier is quite unpleasant and I've tried many things, I finally found that the best usage was to only share the keyboard while using the native bluetooth connection for the mouse on the active screen. So, I use hotkeys to change the screen and using Bettertouchtool I also associate that hotkey to a series of ssh terminal commands that disable bluetooth on the server and enable it on the client. So when for instance I hit the hotkey to switch to the client, it also switch mouse and keyboard via barrier but instantly disable bluetooth on the client and enable it on the server and I can use the native mouse connection while barrier is serving just the usb Apple keyboard.

The problem is that when doing that, all keyboard modifiers aren't working as expected on the client. For instance, I can't use cmd or shift on the client finder to select multiple files, it doesn't work. Same on other programs, it's a general issue when using shift/cmd/ctrl to select multiple files). But modifiers are being sent to the client, I can see them being correctly pressed on the keyboard viewer, it is just being ignored.

However if I use a regular setup with both mouse and keyboard switched via barrier, it works as expected. It's only when mouse on server is being disabled via bluetooth.

Version

v2.3.2

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Official releases

What OSes are you seeing the problem on? (Check all that apply)

macOS

What OS versions are you using?

Sierra & Monterey

Relevant log output

No response

Any other information

No response

icpgithub commented 2 years ago

Hey, any ideas of what could be happening?