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:
- Override
onConnect in src/worker/App.mjs (do not call super).
- Inside the override, call
Neo.Main.getWindowData() remotely on the connecting window.
- Fire the
connect event with the enhanced payload: {appName, windowId, windowData}.
- 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.
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.