[PR #53] [MERGED] release stuck keys #254

Closed
opened 2026-05-05 22:15:19 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feschber/lan-mouse/pull/53
Author: @feschber
Created: 12/17/2023
Status: Merged
Merged: 12/31/2023
Merged by: @feschber

Base: mainHead: release-keys-on-exit


📝 Commits (10+)

📊 Changes

6 files changed (+421 additions, -297 deletions)

View changed files

📝 src/backend/producer/wayland.rs (+1 -0)
📝 src/client.rs (+14 -16)
📝 src/event.rs (+40 -31)
📝 src/frontend.rs (+1 -0)
📝 src/main.rs (+3 -1)
📝 src/server.rs (+362 -249)

📄 Description

This fixes an issue with KDE's implementation of the remote desktop portal backend.
KDE does not correctly release keys when a remote desktop session is closed while keys are still pressed.

This causes them to be stuck until kwin is restarted.

This workaround remembers all pressed keys and releases them when lan-mouse exits or a device enters the screen.

closes #15


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feschber/lan-mouse/pull/53 **Author:** [@feschber](https://github.com/feschber) **Created:** 12/17/2023 **Status:** ✅ Merged **Merged:** 12/31/2023 **Merged by:** [@feschber](https://github.com/feschber) **Base:** `main` ← **Head:** `release-keys-on-exit` --- ### 📝 Commits (10+) - [`c387e9d`](https://github.com/feschber/lan-mouse/commit/c387e9dc0ae220ca93cee1de1b04a61dc04f4b4a) impl wait timer - [`c6f8d05`](https://github.com/feschber/lan-mouse/commit/c6f8d054da30fa01354c5228ac27f9113b8f496b) start timer on enter - [`0ae4d42`](https://github.com/feschber/lan-mouse/commit/0ae4d426d552f7008bdc891c690e1313d2a46c45) dont wait for timer to receive event - [`9cbb029`](https://github.com/feschber/lan-mouse/commit/9cbb029aed8e5480445c391c0a8418028a490c51) refactor server - [`ea25981`](https://github.com/feschber/lan-mouse/commit/ea25981b564dbfac906b1c18b378699df5a9bee5) use saved port from server instead of config - [`0a8caa3`](https://github.com/feschber/lan-mouse/commit/0a8caa35001a02d4abb0c8d27c025ffe0ec9373a) impl key_release + better error handling - [`a09dff8`](https://github.com/feschber/lan-mouse/commit/a09dff852edc9dc5b39fb426351672b6f7804890) cleanup - [`70d317e`](https://github.com/feschber/lan-mouse/commit/70d317e334951df3dfb203c732ab4f47116748ad) cleanup - [`8b8fd88`](https://github.com/feschber/lan-mouse/commit/8b8fd88c8c68e64e8c42d3d9c8c8d0e4c1dcc6af) fix - [`b37352b`](https://github.com/feschber/lan-mouse/commit/b37352bb069afa7a6c544a26e328fd57b78103dc) fix enter ### 📊 Changes **6 files changed** (+421 additions, -297 deletions) <details> <summary>View changed files</summary> 📝 `src/backend/producer/wayland.rs` (+1 -0) 📝 `src/client.rs` (+14 -16) 📝 `src/event.rs` (+40 -31) 📝 `src/frontend.rs` (+1 -0) 📝 `src/main.rs` (+3 -1) 📝 `src/server.rs` (+362 -249) </details> ### 📄 Description This fixes an issue with KDE's implementation of the remote desktop portal backend. KDE does not correctly release keys when a remote desktop session is closed while keys are still pressed. This causes them to be stuck until kwin is restarted. This workaround remembers all pressed keys and releases them when lan-mouse exits or a device enters the screen. closes #15 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 22:15:19 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#254
No description provided.