Frontmatter
| id | 8158 |
| title | Enhance onWindowConnect to include initial window data |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 27, 2025, 12:57 AM |
| updatedAt | Dec 27, 2025, 1:04 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8158 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 27, 2025, 1:04 AM |
Currently,
Neo.manager.Window.onWindowConnectregisters a new window with a null rect. The rect is only updated later whenonWindowPositionChangeis received.To improve this, we will enhance the
connectevent in the App worker to include initial window geometry.Implementation Plan:
onConnectinsrc/worker/App.mjs(do not call super).Neo.Main.getWindowData()remotely on the connecting window.connectevent with the enhanced payload:{appName, windowId, windowData}.Neo.manager.Window.onWindowConnectinsrc/manager/Window.mjsto extract the geometry fromwindowDataand create the initialRectangle.This avoids the initial "null rect" state and ensures spatial awareness is available immediately upon connection.