groupbox:  allow hiding of empty groups

By default, show all groups.  However, allow the user to hide groups
that have no windows if specified.