From Mathworks Support:
Hello William,
This behavior is expected with Mac computers. The Mac operating system will interpret the first click on an inactive window purely as a focus shift, but in the case of a double click, both clicks will be registered as actual clicks.
To verify this behavior, please do the following:
1) Open up a browser, such as Google Chrome. Create two windows of it.
2) On one window, go to a website that counts the number of clicks you make (such as https://www.rapidtables.com/tools/click-counter.html).
3) Focus on the non-clicker window.
4) Double click on the clicker in the non-focused window. You will see that the counter goes up by 2.
5) If you do steps 3 and 4 again, but only click once on the clicker in the non-focused window, you will see that the counter remains the same.
I will go ahead and close this case. If you have any additional questions related to this case, please reply to this email and I will be happy to reopen the case and assist you further.
Sincerely,
Bryan Acosta
MathWorks Technical Support Department
Follow up: Bryan said in a follow-up response, "Since this behavior is a limitation with the Mac operating system, there is unfortunately no workaround for this issue."
