Strata/strata@edu4rdshl.dev/ui
edu4rdshl 575e216658 perf: replace O(n) hover loop with Clutter hit-test in motion-event
The previous implementation iterated all visible widgets on every
mouse-move event, calling get_transformed_position/size on each to
find which one was under the cursor. With a full page of items this
fires dozens of times per second on the compositor thread.

Use event.get_source() to let Clutter do its own hit-test (already
computed), then walk up the parent chain to find the owning
ClipboardItem. The walk is O(tree-depth), typically 3-4 steps,
regardless of history size.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-25 03:51:50 -05:00
..
clipboardItem.js Initial commit 2026-05-25 03:02:34 -05:00
panel.js perf: replace O(n) hover loop with Clutter hit-test in motion-event 2026-05-25 03:51:50 -05:00