goStartEventLoop starts the event processing loop for this window in a new goroutine, and returns immediately. Adds to WindowWait wait group so a main thread can wait on that for all windows to close.
()
| 374 | // goroutine, and returns immediately. Adds to WindowWait wait group so a main |
| 375 | // thread can wait on that for all windows to close. |
| 376 | func (w *renderWindow) goStartEventLoop() { |
| 377 | windowWait.Add(1) |
| 378 | go w.eventLoop() |
| 379 | } |
| 380 | |
| 381 | // todo: fix or remove |
| 382 | // sendWinFocusEvent sends the RenderWinFocusEvent to widgets |