Commit Graph

8 Commits

Author SHA1 Message Date
denis 57bea85de4 Fix the pointer freezes on Wayland: stop reopening /dev/input nodes every 3 s
Devices::rescan reopened every event node it did not keep (power button, audio
jacks, video bus...) on each call. Opening a node takes 25-70 ms on the
field-test laptop, so each rescan blocked the daemon for ~650 ms and the
pointer froze for that long every 3 s while Sourizz was drawing. Rejected nodes
are now remembered and only new ones are opened.

Found with examples/layer_probe.rs, a bare layer-shell overlay with knobs that
was extended one Sourizz component at a time until the stall reappeared. The
README limitation about trails under KWin was wrong and is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:08:01 +01:00
denis ba706a627f Correct the KWin Wayland stall note: it happens with any drawing, not only the trail
A controlled rerun showed the freeze with the classic ring alone, so the
earlier "trail only" conclusion was wrong. It does not occur with all effects
off, without Sourizz, or when dragging a window. Cause still unknown; the
README now recommends the X11 session instead of turning the trail off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:52:56 +01:00
denis 95635db97b CLAUDE.md: record what was ruled out for the KWin trail stall
Trail style, pointer speed, frame rate and continuous commits as such do not
change it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:37:05 +01:00
denis 11cd112f5f Document the KWin Wayland trail stall seen on real hardware
Field test on KDE Plasma 6.3.6 (Intel + NVIDIA hybrid laptop): the pointer
freezes for ~0.5 s every 2-3 s while a trail is drawn. Measurements ruled out
our loop, buffer allocation, damage size, the D-Bus feed and callback waits.
Record it as a known limitation in both READMEs and in CLAUDE.md, and update
what was tested on Wayland.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:29:59 +01:00
denis 68225e8329 Add a handoff note for the Wayland and GNOME field test
Collects what is verified and what is not, a step-by-step test plan for a
second machine, and the open question about GNOME support, and points to
it from CLAUDE.md so a Claude Code session there finds it first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:21:50 +01:00
denis 593d76242a install.sh: offer to install Rust with rustup when cargo is missing
Instead of stopping with "Rust is required", the script now looks for an
existing rustup environment, then offers to install the toolchain with
rustup (minimal profile). It asks first, unless --yes is given, and
refuses to install silently without a terminal. It checks for a C linker
and curl/wget beforehand and downloads the rustup script to a file before
running it. --uninstall does not need Rust. Document it in both READMEs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:17:44 +01:00
denis 23f72eff3d Replace an already-open settings window instead of ignoring the request
When the settings window was open but buried under other windows, asking
for it again from the tray did nothing, so it could not be reached. Asking
the existing window to rise only makes the taskbar entry blink under KWin
(focus-stealing prevention), so the daemon now closes it and opens a fresh
one, which always appears on top. Settings are saved as they change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:12:17 +01:00
denis fee42ae92d Initial commit: Sourizz, a Linux cursor highlighter
Spotlight, ring, trails, click effects, keystroke display and on-screen
annotation for X11 and Wayland, written in Rust. One drawing engine
(engine.rs) shared by an X11 backend (override-redirect ARGB windows,
XInput2 raw events) and a Wayland backend (wlr-layer-shell, evdev input,
Hyprland/KWin pointer sources), plus a tray, a CLI socket and an egui
settings window.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:41:11 +01:00