summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbwindow.cpp
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2020-12-14 14:52:33 +0100
committerGatis Paeglis <gatis.paeglis@qt.io>2021-01-01 17:58:20 +0100
commit2dc15e1f2531db41e4a778051caa609397eee162 (patch)
treecefa4304f13f56bdf7f14f81d967bdb77bd66118 /src/plugins/platforms/xcb/qxcbwindow.cpp
parentf0818f6ed8a616dcc94785637039ac21468ef311 (diff)
xcb: document QXcbEventQueue::PeekOption enum
And renamed PeekRemove* to PeekConsumed to document better that nodes are not removed when peeking. Change-Id: I7349f57fcfc3287d1a1309a31ee7f481f8d18755 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.cpp')
-rw-r--r--src/plugins/platforms/xcb/qxcbwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp
index 359ee14488..66f0558a55 100644
--- a/src/plugins/platforms/xcb/qxcbwindow.cpp
+++ b/src/plugins/platforms/xcb/qxcbwindow.cpp
@@ -1618,7 +1618,7 @@ void QXcbWindow::handleExposeEvent(const xcb_expose_event_t *event)
bool pending = true;
- connection()->eventQueue()->peek(QXcbEventQueue::PeekRemoveMatchContinue,
+ connection()->eventQueue()->peek(QXcbEventQueue::PeekConsumeMatchAndContinue,
[this, &pending](xcb_generic_event_t *event, int type) {
if (type != XCB_EXPOSE)
return false;