Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems controlling client after sleeping/resuming server, seems to be scrolllock issue #102

Open
snuq opened this issue Jul 23, 2018 · 2 comments
Labels
bug Something isn't working windows Related to Microsoft Windows

Comments

@snuq
Copy link

snuq commented Jul 23, 2018

Operating Systems

Server: Windows 8.1

Client: Windows 8.1

Barrier Version

2.1.0-RELEASE-0b2dfd80

Steps to reproduce bug

  1. connect server and client
  2. sleep server computer
  3. wake server computer

Other info

I start up and connect barrier between the two computers and it works great, but when the server computer (my laptop) sleeps then wakes up, I no longer an able to control the client.

the log on the server displays: """
[
2018-07-23T1
3
:45:4
2]
W
ARNING: f
a
il
e
d to register
hotke
y
S
croll
Lock (
id=ef14
mask=0000)
"""
...yeah, its split up exactly like that...

Both computers say they are connected, but I cannot move the mouse off screen. Enabling and disabling scroll lock does not have any effect.
stopping and starting the server does not fix it, i have to go into the configure server settings, click ok, then click apply, THEN i can use the mouse connection again.

@AdrianKoshka AdrianKoshka added bug Something isn't working windows Related to Microsoft Windows labels Jul 24, 2018
@Zackhardtoname
Copy link

still having this problem...

@mirh
Copy link

mirh commented Feb 25, 2022

stopping and starting the server does not fix it, i have to go into the configure server settings, click ok, then click apply, THEN i can use the mouse connection again.

I can confirm this did the trick for me, after a hour of attempts.
For some reason Scroll Lock is on, locking cursor to screen just didn't seem to want to go away.

https://github.com/debauchee/barrier/blob/v2.4.0/src/lib/platform/MSWindowsKeyState.cpp#L833
https://github.com/debauchee/barrier/blob/v2.4.0/src/lib/platform/MSWindowsScreen.cpp#L1140
I feel like those functions are some disaster waiting to happen
https://stackoverflow.com/questions/66510965/windows-c-getkeystate-caps-lock-detector-does-opposite
https://stackoverflow.com/questions/45719020/winapi-getkeyboardstate-behavior-modified-by-getkeystate-when-application-is-out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Related to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

4 participants