Is it possible to create a "windows like" click through experience?

Hi!
I want left-clicking on an unfocused window to not just focus the window, but also send a click into it.
For example, I have a video in Safari on the right side while taking Notes on the left side. Now whenever I want to interact with the video in Safari, I first have to click it once to focus the window and then click it again to stop the video etc.
On Windows, it just interacts with the video instantly, no need to click twice. I like that.

My idea was to remap the left click like this:

  • IF window under cursor IS NOT in focus
    • Bring window into focus
  • Perform left click

I tried setting it up like this:

I think my IF condition is wrong, but the idea seems to work. It now clicks through into the video, no need to click twice.
BUT: Now I lost the standard left click functionality like dragging. It's always a click, nothing else.

Would it be possible to set it up in a way that it still works like a normal left click? Meaning, I could also still drag windows around, etc.?
I only want to check whether the window I want to click is already in focus, and if not set it in focus before sending the click.

Hopefully, you can help me! Thanks!

anyone? :sob:

I would not recommend do do this.
You can cmd+click to interact with a window in the background. Overriding the standard behavior like this will always lead to weird problems unless you handle a ton of edge cases.

Okay, thanks for your input.
I guess I'll have to live with this MacOs behaviour then :')

Yes I would recommend to try getting used to it :wink:
Cmd+click can be very helpful in these situations.