experimental way to send events to the main window