if the window is somehow hidden (sometime the reactivation after closing and emulator is not fired !
handle hat events