GUI: prevents "click through"

Now if we click on the window (mainWindow & infoWindow), it does not
affect the parts under this window