I am new to Mac. I have both Safari and Xcode window open. Problem is, whenever I am quiting my Xcode, currently open Safari window isn’t automatically getting selected. Instead Doc getting selected. Every time I’m quiting an application I have to click on top visible window for focus and start work. How can I change this behaviour. On windows+other-desktop-environments like GNOME, this seems to have been default behaviour.