| 347 | } |
| 348 | |
| 349 | void Window::ProcessEvents(bool block) |
| 350 | { |
| 351 | NazaraAssert(m_impl, "Window not created"); |
| 352 | NazaraUnused(block); |
| 353 | |
| 354 | if (!m_asyncWindow) |
| 355 | m_impl->ProcessEvents(block); |
| 356 | else |
| 357 | { |
| 358 | LockGuard eventLock(m_eventMutex); |
| 359 | |
| 360 | for (const WindowEvent& event : m_pendingEvents) |
| 361 | HandleEvent(event); |
| 362 | |
| 363 | m_pendingEvents.clear(); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void Window::SetCursor(CursorRef cursor) |
| 368 | { |