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

Function closeWindow

tools/decoration-runtime.ts:3082–3101  ·  view source on GitHub ↗
(
  events: CompositorEventController,
  windowId: string,
)

Source from the content-addressed store, hash-verified

3080 candidate !== nodeId &&
3081 (candidate.startsWith(`${nodeId}.`) ||
3082 candidate.startsWith(`${nodeId}[`)),
3083 )
3084 ) {
3085 return null;
3086 }
3087 const previous = findSerializedNode(previousTree, nodeId);
3088 const next = findSerializedNode(nextTree, nodeId);
3089 const nodePatches = collectNodeShaderUniformPatches(previous, next);
3090 if (nodePatches === null) {
3091 return null;
3092 }
3093 patches.push(...nodePatches);
3094 }
3095 return patches;
3096}
3097
3098function collectNodeShaderUniformPatches(
3099 previousValue: unknown,
3100 nextValue: unknown,
3101): NativeShaderUniformPatch[] | null {
3102 const previous = asRecord(previousValue);
3103 const next = asRecord(nextValue);
3104 if (

Callers 1

mainFunction · 0.85

Calls 6

dropWindowDependenciesFunction · 0.90
dropWindowStateFunction · 0.90
cancelMethod · 0.80
emitCloseMethod · 0.80
deleteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected