tabs: only show close-button for foreground tab.