diff --git a/CLAUDE.md b/CLAUDE.md index d5a078a..c4b5bc2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -47,7 +47,7 @@ Adding a config option touches: `config.rs` (struct, `Default`, `sanitize`), `i1 - **egui ids must be unique on screen.** Two `ComboBox`es sharing an id (e.g. both labelled "Style") act as one control and their popups close each other, so the lists could not be opened. `combo()` in `settings.rs` takes an explicit id — never derive it from the label. `examples/click_at.rs` drives the real settings window through XTEST for such checks (it refuses to click unless the pointer is over our own window). - **Raising an already-open settings window does not work under KWin.** Focus-stealing prevention turns another process's activation request (`ViewportCommand::Focus` after a `SIGUSR1`) into a blinking taskbar entry (`_NET_WM_STATE_DEMANDS_ATTENTION`), so a window buried under others stays buried. `Core::open_settings` therefore kills the old child and spawns a new one, which always maps on top. It is safe because the settings save as they change. - Process name `sourizz-settings` is truncated to 15 chars by the kernel: use `pgrep -x sourizz-setting`, and never `pgrep -f` from a shell whose own command line contains the pattern. -- **KWin Wayland stalls with a trail (real hardware, Intel + NVIDIA laptop, KWin 6.3.6).** The pointer freezes ~0.5 s every 2-3 s while a trail is drawn; ring alone and idle daemon are fine. Measured and ruled out: our loop blocking (no iteration over 40 ms), buffer allocation (reusing buffers changed nothing), damage size (40-380 kpx per commit, stalls unrelated to it), the D-Bus pointer feed (75-140 positions/s, harmless), waiting for frame callbacks (committing after 20 ms changed nothing). Not tried: other trail styles, KWin on the Intel GPU only (`KWIN_DRM_DEVICES`), position extrapolation for the ring lag. Documented as a known limitation in both READMEs. +- **KWin Wayland stalls with a trail (real hardware, Intel + NVIDIA laptop, KWin 6.3.6).** The pointer freezes ~0.5 s every 2-3 s while a trail is drawn; ring alone and idle daemon are fine. Measured and ruled out: our loop blocking (no iteration over 40 ms), buffer allocation (reusing buffers changed nothing), damage size (40-380 kpx per commit, stalls unrelated to it), the D-Bus pointer feed (75-140 positions/s, harmless), waiting for frame callbacks (committing after 20 ms changed nothing), the trail style (`dots` and `rainbow` both stall), pointer speed (slow motion stalls too), the frame rate (`general.fps = 30` still stalls), and continuous commits as such (the ring pulse already commits at 30/s with the pointer still, without stalls). Not tried: KWin on the Intel GPU only (`KWIN_DRM_DEVICES`), position extrapolation for the ring lag. Documented as a known limitation in both READMEs. ## Testing Wayland without a Wayland session