Somehow the Makefile had bee deleted from my project…
I made a fresh copy of the original and copied my code… Everything is workibg now.
My solution (before seeing yours) was the same as yours. I tried both WindowShouldClose() != true (and == false)
Im using a Mac and neither the X or ESC key will close the window when pressed.