fixup: window and tabs some error.

Signed-off-by: gaoguodong <gaoguodong@sunniwell.net>
fixup: tabs[x], and event bug

Signed-off-by: gaoguodong <gaoguodong@sunniwell.net>