Sync doesn't run when a window other than the main window gains focus

Steps to reproduce

  1. Open Obsidian
  2. Open a second window (not a pane but a completely separate window)
  3. Alt-tab/change focus to another application
  4. Focus the secondary Obsidian window (not the main one)
  5. Sync doesn’t run/check for updates
  6. If you focus the main window, sync does run.

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

Sync should run whenever any window gains focus

Actual result

Sync only runs when the main window gains focus

Environment

SYSTEM INFO:
Obsidian version: 1.12.5
Installer version: 1.8.10
Operating system: Windows 11 Home 10.0.26200
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 15
Plugins enabled: 15
1: Linter v1.30.0
2: Templater v2.16.2
3: Tag Wrangler v0.6.4
4: Advanced Tables v0.22.1
5: Map View v6.0.3
6: Settings Search v1.3.10
7: Daily Notes Editor v1.1.0
8: Link Embed v2.10.3
9: List Callouts v1.2.9
10: Vimrc Support v0.10.2
11: Quick Switcher++ v5.3.1
12: PDF++ v0.40.31
13: Full Calendar v0.10.7
14: Local Backup v0.2.0
15: Excalidraw v2.17.2

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

It works fine for me.

Did you follow the troubleshooting guide?

Yes I did.

Just tested it again and sometimes it’s working. It’s inconsistent. Not sure what makes it not sync sometimes.

Did you download and reinstall Obsidian?

Did you try with restricted mode on and restart Obsidian?