TabBase tab = getTabAtPosition(mX, mY);
if (tab != null && !tab.onMousePressed(mX, mY, mouseButton)) {
for (int i = tabs.size(); i-- > 0;) {
TabBase other = tabs.get(i);
if (other != tab && other.open && other.side == tab.side) {
other.toggleOpen();
}
}
tab.toggleOpen();
return;
}