Idle detection in Windows app, fixes #362