closeReq requests that the window be closed, which could be rejected. It firsts unlocks and then locks the [renderContext] to prevent deadlocks. If this is called asynchronously outside of the main event loop, [renderWindow.SystemWin.closeReq] should be called directly instead.
()
| 329 | // If this is called asynchronously outside of the main event loop, |
| 330 | // [renderWindow.SystemWin.closeReq] should be called directly instead. |
| 331 | func (w *renderWindow) closeReq() { |
| 332 | rc := w.renderContext() |
| 333 | rc.unlock() |
| 334 | w.SystemWindow.CloseReq() |
| 335 | rc.lock() |
| 336 | } |
| 337 | |
| 338 | // closed frees any resources after the window has been closed. |
| 339 | func (w *renderWindow) closed() { |
no test coverage detected