When I quit Safari via its Menu or CMD+q, it properly restores saved tabs.
However, if I close it via X icon (top left) or by quitting it via right click on its icon in the desktop bar, it does not restore any tab.
What am I making it wrong? I already set it to restore the tabs in its Preferences.