-fixed wake-events handling to force awake from wait only on modal windows

git-svn-id: https://saphirion.svn.beanstalkapp.com/codebase/trunk/r3-gui@5777 0b15d6fc-ce89-4483-8625-0b0fabc32e25