Another option, maybe an easier one, is to send the event when we first show a toplevel window in nsIWidget::Show.
Another option, maybe an easier one, is to send the event when we first show a toplevel window in nsIWidget::Show.