wayk: add OnWindowStateChange client event