Made sure cursor gets set to arrow when modal dialogs are shown in the IDE and on entering top background