Alex313031 / thorium

Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
4.44k stars 139 forks source link

macos: Restore tabs to appropriate Mission Control desktop Space #649

Open jamesholcomb opened 2 months ago

jamesholcomb commented 2 months ago

In macOS, users can choose to create multiple (up to 16) desktops, aka “Spaces,” using Mission Control. Each Thorium window can exist in a different Space.

Users arrange their application windows windows, including Thorium windows, across multiple Spaces to optimize/organize their workflows, e.g., by project, by research topic, etc.

Currently, when you need to Log Out or Restart, when Thorium reopens later, all the Thorium windows occupy a single Space, no matter what Space the user had originally assigned the window to.

SUGGESTION: Upon restarting Thorium for any reason, when Thorium windows reopen, have each Thorium window open in the Space it occupied at the end of the previous session.

This would help the user and prevent her from having to re-assign each Thorium window to its original Space.

Attribution: https://community.brave.com/t/macos-when-windows-reopened-after-quit-restart-respect-mission-control-spaces-assignments/193349

Alex313031 commented 2 months ago

@jamesholcomb I would like to fix this, but don't know how. I know next to nothing about developing on MacOS. The Mac builds were cobbled together over time, and are kind of provided as is. I'm most knowledgeable about Linux development, Windows 2nd, and other platforms 3rd.

If you know of a patch, or a commit that brave used to fix this, I would be happy to integrate it.

jamesholcomb commented 2 months ago

some quick searching turned up these, not sure if they're helpful...

https://superuser.com/questions/1111535/how-can-i-make-osx-remember-the-desktop-assignment-of-different-chrome-windows/1490087#1490087

https://apple.stackexchange.com/questions/189138/restore-app-windows-to-their-original-spaces