protected void mouseClicked(int mx, int my, int button) { if (button == 0) { if (!transiting) { foreground.mouseClicked(mx, my, button); } } }