Implemented hb_read_window_events