Fix mouse being grabbed in window and in menu