Did that behavior change at some point? I'm on Big Sur and clicking on an unfocused window will focus it and trigger whatever button your mouse landed on.
Edit: it seems to depend on the kind of button(?)
Edit: it seems to depend on the kind of button(?)
> var worksWhenModal: Bool
> A Boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally.
I think there are flags for doing that for non-modal ‘other windows’, too.