Comments (3)
I am using inotifywait in a bash script that restarts the xkeysnail service atm as a workaround, but it is a poor workaround that can result in stuck keys actually. May highlight an issue though, it'd be good to have xkeysnail release any potential keys or modifiers on startup, although xkeysnail has no systemd component natively.
from xkeysnail.
it'd be good to have xkeysnail release any potential keys or modifiers on startup
Interesting, I'd have assumed that when we die the virtual keyboard we created goes away and all it's keys with it... if keys are really being persisted across restarts I think you'd want to lift them both on shutdown AND startup.
I'm not sure if you can even query uinput for "which keys are currently down" though...
What type of glitches are you seeing exactly from stuck keys? Because once we're gone we aren't sending any more REPEAT events... so the only thing that might be persisted is the actual "PRESS" state inside uinput itself... I guess that could be enough to mess up modifiers... though really it's probably the user facing software persisting this state, not uinput itself... (which makes more sense)
In any case this should be fixed just by doing proper cleanup when asked to terminate... basically ask output to release all keys.
from xkeysnail.
Something like watching for SIG_TERM and doing proper cleanup:
Note I'm still not 100% clear on which signals are sent when, but this is the right approach me thinks.
from xkeysnail.
Related Issues (20)
- Sending modifier key by itself on output side of K function? HOT 33
- Just to confirm: some "weird" mappings, they aren't possible? HOT 2
- Question: Plain key remapping (without modifiers) HOT 8
- Much faster input processing (avoid the whole stack) HOT 1
- Long press trigger key of multiple stroke keys HOT 11
- xkeysnail captures all my input, but it doesn't work anywhere else HOT 9
- No such file or directory HOT 5
- How to uninstall
- Where is the config.py supposed to be? HOT 2
- Window Switcher Preview (Super+Tab) broken in `v0.4.0` HOT 2
- Incorrect documentation: `name` is not an optional argument to `define_keymap`
- error while running pyautogui in pycharm in linux
- xkeysnail ported to hy (or: hy-lang) - in an attempt to make it work with wayland - and success with wayland!
- plusminus and section key HOT 2
- Doesn't work in a virtual machine?
- Mapped CapsLock to Ctrl, but Ctrl + mouse clicks and scroll does not work
- Use with azerty (french) keyboard HOT 1
- Are Umlauts supported (e.g. ΓΌ)? If yes, how to use them?
- Every so often, control gets stuck after changing desktops.
- VirtualBox: first, send the Host key, next, send the actual binding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xkeysnail.