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

Use X11 as fallback Hotkey implementation #592

Merged
merged 1 commit into from
Nov 6, 2022

Commits on Nov 6, 2022

  1. Use X11 as fallback Hotkey implementation

    `evdev` requires the user to be in the `input` group. This is the case
    for some Linux distributions, but not all. We now try to identify if the
    user is in that group and if that's not the case we use `X11` to grab
    the hotkeys. This mostly matches our previous implementation, except
    that it now handles the modifiers as well. Handling repeating hotkeys
    does not seem to (at least easily) be possible as it's impossible to
    differentiate a repeating hotkey from a newly pressed one. We usually
    would then store the state of the key to see if it ever got released,
    but here we also get released events even though the key never actually
    got released. Since X11 is mostly a fallback implementation, this is
    probably not too bad.
    CryZe committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    06fee9a View commit details
    Browse the repository at this point in the history