appshare: refactor ask_accept_applicationsharing()