res:dock:: fix menu problem.

the dock will be hidden even on the contextmenu is shown.

resaon:
forget to handle that.

solution:
forbid to update hide state when the contextmenu is shown.