Mouse support for switching windows

This allows the user to select the active window by clicking on its title in the bottom bar.