mirror of
https://github.com/deunix-educ/sourizz.git
synced 2026-11-25 04:39:43 +01:00
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>
This commit is contained in:
@@ -47,6 +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.
|
||||
|
||||
## Testing Wayland without a Wayland session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user