Skip to content

Make layer-shell edge capture less fragile#447

Open
sidnvy wants to merge 1 commit into
feschber:mainfrom
sidnvy:fix-layer-shell-edge-thickness
Open

Make layer-shell edge capture less fragile#447
sidnvy wants to merge 1 commit into
feschber:mainfrom
sidnvy:fix-layer-shell-edge-thickness

Conversation

@sidnvy
Copy link
Copy Markdown

@sidnvy sidnvy commented May 25, 2026

Layer-shell capture currently uses 1px edge surfaces. On at least Hyprland with a scaled output, the cursor can be clamped just inside the logical output bounds and never enter the 1px left-edge surface.\n\nIncreasing the capture thickness to 4px makes edge entry reliable while keeping the capture area narrow.\n\nTested with:\n- Hyprland\n- lan-mouse layer-shell capture backend\n- left-edge capture on a 2560x1440 logical output at scale 1.5\n\nChecks run:\n- cargo fmt --check\n- git diff --check\n- cargo test --no-default-features --features layer_shell_capture,wlroots_emulation

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.

1 participant