Skip to content

Conversation

@jonstelly
Copy link

@jonstelly jonstelly commented Feb 4, 2026

Fixes #369. Issue was that on using a hotkey to trigger remote release (need to do this on a wayland lock screen to return cursor/focus to my main computer), I bound release to Meta+z and the Meta key would be left down/stuck on the remote machine.

Steps to repro:

  1. set release_bind in config using some modifier (meta+z is what I used)
  2. attempt to release focus from a remote computer with this binding
  3. modifier key ends up stuck/down

NOTE: I'm an old developer but pretty new to rust. This is a pretty small PR but if there's anything you'd like changed, just let me know

Copilot AI review requested due to automatic review settings February 4, 2026 17:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where modifier keys (specifically the Meta key) would remain stuck on the remote machine after using a hotkey to trigger a remote release. The issue occurred when using a release bind like Meta+z to return focus from a locked Wayland screen.

Changes:

  • Modified release_capture() to send a Leave event to the active client before releasing capture, ensuring stuck keys are cleared

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release_bind not clearing modifiers?

1 participant