partial workaround for OSX window minimize issue