res:dock:: fix hide problem.

dock won't be hidden after rightclick.

reason:
the state is not cleared.