mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-25 14:22:25 -06:00
The wlroots emulation backend reported display_bounds from wl_output's raw mode dimensions (e.g. 2560x1600) while the capture side reports them from xdg_output's LogicalSize (e.g. 2400x1500 with software scaling). The CursorPos warp computes target = ny * emulation_bounds, so warps landed at proportions shifted relative to where the sender measured the crossing. Bind zxdg_output_manager_v1 in WlrootsEmulation, request an xdg_output companion for each wl_output, and prefer the logical size/position when computing union_bounds. Falls back to wl_output mode/geometry per-output when xdg-output isn't advertised. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||