LearnNewsExamplesServices
Frontmatter
id8158
titleEnhance onWindowConnect to include initial window data
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 27, 2025, 12:57 AM
updatedAtDec 27, 2025, 1:04 AM
githubUrlhttps://github.com/neomjs/neo/issues/8158
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 27, 2025, 1:04 AM

Enhance onWindowConnect to include initial window data

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 27, 2025, 12:57 AM

Currently, Neo.manager.Window.onWindowConnect registers a new window with a null rect. The rect is only updated later when onWindowPositionChange is received.

To improve this, we will enhance the connect event in the App worker to include initial window geometry.

Implementation Plan:

  1. Override onConnect in src/worker/App.mjs (do not call super).
  2. Inside the override, call Neo.Main.getWindowData() remotely on the connecting window.
  3. Fire the connect event with the enhanced payload: {appName, windowId, windowData}.
  4. Update Neo.manager.Window.onWindowConnect in src/manager/Window.mjs to extract the geometry from windowData and create the initial Rectangle.

This avoids the initial "null rect" state and ensures spatial awareness is available immediately upon connection.

tobiu added the enhancement label on Dec 27, 2025, 12:57 AM
tobiu added the ai label on Dec 27, 2025, 12:57 AM
tobiu assigned to @tobiu on Dec 27, 2025, 1:02 AM
tobiu referenced in commit 5c9f443 - "Enhance onWindowConnect to include initial window data #8158" on Dec 27, 2025, 1:04 AM
tobiu closed this issue on Dec 27, 2025, 1:04 AM
tobiu referenced in commit 0b41363 - "Enhance onWindowConnect to include initial window data #8158" on Dec 27, 2025, 11:46 PM