Obsidian forces focus back to itself after changing application __away__ from Obsidian

Steps to reproduce

  1. Open Obsidian to a markdown file
  2. Change application using Raycast / Alfred
  3. A flash of change occurs and then Obsidian grabs focus back.

Expected result

Changing application should work as normal and give focus to the app that the user changes to.

Actual result

Obsidian snags the focus back immediately.

Environment

  • Operating system: macOS 12.1
  • Debug info:
SYSTEM INFO:
	Obsidian version: v0.13.14
	Installer version: v0.12.5
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Atom
	Snippets enabled: 0
	Safe mode: off
	Plugins installed: 2
	Plugins enabled: 2
		1: Obsidian Git
		2: Natural Language Dates

Additional information

This used to be a bug with vscode and was linked to the version of electron that was being built against: 1.57.0 (macOS): window behaves different now (fullscreen & priority issues) · Issue #126025 · microsoft/vscode · GitHub

I’ve supplied a video demonstrating the issue too. You can see I try to change to kitty from Obsidian but it fails everytime while Obsidian is the current focused app. I change manually to another app and try the same changing behaviour and it works.

download and reinstall obsidian. It if doesn’t work, wait until we upgrade to a new version of electron.

Alrighty, thanks!