///////////////////////////////////////////////////////
| 170 | |
| 171 | //////////////////////////////////////////////////////////// |
| 172 | void ClipboardImpl::processEventsImpl() |
| 173 | { |
| 174 | XEvent event; |
| 175 | |
| 176 | // Pick out the events that are interesting for this window |
| 177 | while (XCheckIfEvent(m_display.get(), &event, &checkEvent, reinterpret_cast<XPointer>(m_window))) |
| 178 | m_events.push(event); |
| 179 | |
| 180 | // Handle the events for this window that we just picked out |
| 181 | while (!m_events.empty()) |
| 182 | { |
| 183 | event = m_events.front(); |
| 184 | m_events.pop(); |
| 185 | processEvent(event); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | |
| 190 | //////////////////////////////////////////////////////////// |