Refresh workspace when the focus is back on the app window

Fixed #302

@devoncarew