windows are always restored to current virtual desktop
sleffler opened this issue · comments
[auto-restore isn't working so using Advanced Restore]
Restored tabs are all in the same virtual desktop.
i'm fairly certain the Chrome extension APIs do not expose virtual desktop information, so there's nothing i can do here until that changes
here is the Chrome Windows extension APIs for reference:
https://developer.chrome.com/docs/extensions/reference/api/windows#method-create
the first step is to create a window & set its state (size/location). then you populate the tabs using the Chrome Tabs extension APIs. the tabs APIs are responsible for things like pinned tabs.
https://developer.chrome.com/docs/extensions/reference/api/tabs#method-create
so the content of the window (e.g. tabs) is independent of the window itself. and i don't see any APIs for virtual desktop settings (querying or restoring/setting).
restoring pinned tabs works from the popup. i'm guessing you're using the advanced page ... that seems to use a diff implementation for some reason. i'll unify them.