Removed typedef of removed struct.
Fixed focus events triggered by window frame.