MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / cancelAnimation

Function cancelAnimation

tools/decoration-runtime.ts:2325–2337  ·  view source on GitHub ↗
(channel)

Source from the content-addressed store, hash-verified

2323 // exactly how activation-request targets get re-evaluated — silently
2324 // overwriting latestSnapshot here swallowed their focus transition, so
2325 // onFocus never fired and the config never raised them in the stack.
2326 const focusChanged = entry.latestSnapshot.isFocused !== snapshot.isFocused;
2327 entry.latestSnapshot = snapshot;
2328 updated = entry.cache.update(snapshot);
2329 if (focusChanged) {
2330 events.emitFocus(entry.cache.window, snapshot.isFocused);
2331 }
2332 debugLabel("evaluate-cached-update-snapshot", {
2333 windowId,
2334 snapshotTitle: snapshot.title,
2335 windowTitle: entry.cache.window.title.peek(),
2336 updated: updated !== null,
2337 labels: updated
2338 ? summarizeSerializedLabels(updated.serialized)
2339 : undefined,
2340 });

Callers 1

types.tsFile · 0.85

Calls 3

debugHotReloadFunction · 0.85
summarizeWindowActionFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected