Mac 10.9 window focus issue running the examples

It works! I’m new to Mac and I didn’t know if this kind of stuff works like an ordinary Linux distribution. Thanks for the support.