mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-18 07:34:45 +00:00
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> |
||
|---|---|---|
| .. | ||
| clipboardItem.js | ||
| panel.js | ||