Repository navigation
Fix overlay selection state and harden IPC/input paths - #5
Merged
Merged
Conversation
The visible workspace list is now the single index space for selection, keyboard navigation, pointer hit-testing, and drawing. Previously show_empty_workspaces filtered the draw list while every other caller used the raw list, so the highlight and mouse targets could disagree. Also fix the related input-state bugs: clear the Tab highlight on every navigation press, keep the current card when a filter is cleared, reject stale Tab targets under a filter, make out-of-range number keys a no-op, and reset hover/pointer/Shift state when hiding the overlay. Apply no_preview and allow_mouse on config reload (binding wl_pointer if needed), drop capture work when previews are unavailable, and reuse Cairo thumbnail surfaces instead of cloning pixels on every redraw. Harden the edges found in the same review: Sway IPC read/write timeouts, short-write handling for SHM frames, escaped quotes in the hand-rolled Hyprland JSON parser, symlink-safe lock files with mode 0600, and char-safe hex color parsing. Add regression tests for each fix.
Keep only open follow-ups so the file stays a current work queue rather than an accumulating checklist. Completed entries are recorded in the changelog and the commit history.
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
Fixes the high-priority
show_empty_workspacesselection mismatch and clearsout the deferred overlay state, input, capture, IPC, and lock-file issues from
TODO.md. The visible workspace list is now the single index space forselection, keyboard navigation, pointer hit-testing, and drawing.
Changes
selected, keyboard navigation,workspace_at/window_at, andredrawonto the same visible workspace list; remap selection by name across config
reloads and clamp it when the list shrinks.
a filter is cleared, reject stale Tab targets under a filter, make
out-of-range number keys a no-op, and reset hover/pointer/Shift state in
hide().behavior.no_previewandbehavior.allow_mouseon config reload,including binding
wl_pointerand restarting captures.thumbnail surfaces instead of cloning pixels on every redraw.
escaped quotes in the Hyprland JSON parser, open the lock file with
O_NOFOLLOW/mode0600and reject non-regular files, and makeparse_hex()char-safe.
completed entries from
TODO.md.Testing
just check(fmt, clippy with-D warnings, 81 unit tests)cargo build --release --locked