A bug with mouse click events after creating and deleting a widget.

I have a game with a top view and the cursor is always visible. I’ll do the rest.