Window focus

If there are many patches open, some of them do not come to the front if they get the focus