Repository navigation
Conversation
3 of 10 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Flow's edge handoff is off on a Wayland session because an ordinary client can't read the cursor. On KDE Plasma this adds a small KWin script that tells the agent when the cursor pushes into a screen edge, and places the cursor on arrival. It never captures input. Related to #2360, which only asks for a notice; this is the working path for KDE.
I tried the InputCapture portal first, but on KDE a live capture swallows all input system-wide until released, so I dropped it.
Changes
openlogi-core: a virtual absolute pointer device,OL pointer placement.openlogi-hook: servesorg.openlogi.Edgeon the session bus, reads the screen layout fromxdg-output, and moves the cursor with the virtual pointer. The script lives incrates/openlogi-hook/kwin-script/.openlogi-agent-core: a third pointer mode for KDE Wayland that turns an edge call into the same crossing the polling thread reports, places the cursor on arrival, and ignores edge calls for 1 s after a placement so the cursor can't bounce straight back.Testing
cargo fmt --all -- --check,cargo test --workspace(4777 passed), rustdoc for the non-GUI crates: pass.cargo clippy --workspace --all-targets -- -D warnings: fails on 8map_unwrap_orlints inopenlogi-corefiles this PR doesn't touch (Rust 1.100). Clean on the crates this PR changes.ast-grep,typos,cargo-deny, the macOS and Windows jobs, the wasm check.Known limits: KDE only, the script has to be installed and enabled by hand, and "require Control" can't be honoured on Wayland.