Add support for minimize on click for single window applications.