<p dir="auto">MacOS supports multiple desktops. I show window when user taps on tray icon and hide it when user clicks somewhere else. Is there any way to show window on current desktop?</p>
<p dir="auto">Using <code class="notranslate">setVisibleOnAllWorkspaces</code> makes window visible on all desktops but calls to <code class="notranslate">window.show</code> still cause switch to the desktop where the window was initially created/displayed.</p>
<p dir="auto">I know I could re-create window each time, but that's slow. Would be awesome to have a method like <code class="notranslate">BrowserWindow.showOnCurrentDesktop()</code> or something like that. Not sure I can patch it externally without patching Electron/Atom.</p>
<ul dir="auto">
<li>Electron version: 1.6.0</li>
<li>Operating system: macOS Sierra</li>
</ul>
<p dir="auto">All major platforms now support workspaces (virtual desktops), we should probably add a set of workspace related API, so it can:</p>
<ul dir="auto">
<li>get the workspace of window;</li>
<li>list available workspaces;</li>
<li>choose which workspace to put the new window;</li>
<li>move windows between workspaces.</li>
</ul>