Commit Graph

7 Commits

Author SHA1 Message Date
denis 4782bbadd0 Tray: wait for the notification area instead of giving up, and record the Xfce field test
Started at login by the autostart, Sourizz could run before the session's panel
published org.kde.StatusNotifierWatcher; ksni then failed once and the daemon
stayed without an icon until restarted (seen on Xfce 4.20). The tray is now
spawned with assume_sni_available(true), so it registers as soon as the watcher
appears. Checked by stopping xfce4-panel, starting the daemon, and restarting
the panel: the icon registered by itself.

The READMEs list Xfce 4.20 as tested (12 automatic checks, global hotkeys,
ring, trail, spotlight, keystrokes, clicks and sounds, annotation, settings
window, tray icon and menu).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 13:16:10 +01:00
denis 61b30f4305 State plainly that GNOME's Wayland session is unsupported, and where Sourizz works
The READMEs get a status column in the compatibility table (tested, not tested,
not supported), an opening line about the supported desktops, and a clear
paragraph on GNOME: no layer-shell, XWayland is no workaround, and the Xorg
session is gone from GNOME 49. The error message on such a compositor says the
same. The decision is recorded in CLAUDE.md; the handoff note is removed since
its content has been absorbed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:37:42 +01:00
denis 169adaa3a7 Default the ring hotkey to Ctrl+Alt+Shift+O and record the GNOME Xorg field test
GNOME Shell uses Ctrl+Alt+Shift+R for its screen-recording interface, so the
old default never reached the ring there (and opened the recorder instead).
Existing config files keep their value. The READMEs now list the GNOME Xorg
results; CLAUDE.md explains how to run x11_probe against an isolated config
with the ring pulse off; the handoff note ticks step 2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:53:12 +01:00
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 105b4be66e Make the annotation and click-preview hotkeys switch on what they need
Ctrl+Alt+Shift+A did nothing while the master switch was off, and
Ctrl+Alt+Shift+Y did nothing unless the master switch and the click
effects were both on, with no feedback. They now enable what is missing
(and persist it, like the other toggles) before acting. Document the Y
hotkey in both READMEs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:12:17 +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