| 184 | } |
| 185 | |
| 186 | void XWindowsEventQueueBuffer::flush() |
| 187 | { |
| 188 | // note -- m_mutex must be locked on entry |
| 189 | |
| 190 | // flush the posted event list to the X server |
| 191 | for (auto &event : m_postedEvents) { |
| 192 | XSendEvent(m_display, m_window, False, 0, &event); |
| 193 | } |
| 194 | XFlush(m_display); |
| 195 | m_postedEvents.clear(); |
| 196 | } |