Calling set_cursor_grab every frame on wayland (even with the same Mode every time) leads to it not working properly, but setting it once works