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

Flush commands when changing hotkeys on X11 #840

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Sep 4, 2024

Apparently not every X11 connection flushes the commands automatically. However, it's really important for the hotkey changes to take effect immediately. We don't do anything else on the X11 connection, so the changes would be pending until the next hotkey changes or possibly even later.

This additionally cleans up the implementation to not ungrab all keys every time a hotkey change happens. This should not affect the bug, but it did not seem like the right thing to do in general.

Apparently not every X11 connection flushes the commands automatically.
However, it's really important for the hotkey changes to take effect
immediately. We don't do anything else on the X11 connection, so the
changes would be pending until the next hotkey changes or possibly even
later.

This additionally cleans up the implementation to not ungrab all keys
every time a hotkey change happens. This should not affect the bug, but
it did not seem like the right thing to do in general.
@CryZe CryZe added bug There is a bug. enhancement An improvement for livesplit-core. priority: high This is a high priority issue. hotkey This is about the hotkey implementation. labels Sep 4, 2024
@CryZe CryZe added this to the v0.14 milestone Sep 4, 2024
@CryZe CryZe linked an issue Sep 4, 2024 that may be closed by this pull request
@CryZe CryZe enabled auto-merge (squash) September 4, 2024 17:37
@CryZe CryZe merged commit 331ce71 into LiveSplit:master Sep 4, 2024
70 checks passed
@CryZe CryZe deleted the x11-hotkey-flush branch September 5, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a bug. enhancement An improvement for livesplit-core. hotkey This is about the hotkey implementation. priority: high This is a high priority issue.
Projects
Development

Successfully merging this pull request may close these issues.

Losing keyboard inputs after using menus
1 participant