diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-07-26 14:54:23 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-08-29 14:18:29 +0000 |
commit | ec2c0f4db6350a304dcf901b9adbadc895864c14 (patch) | |
tree | db8c6df6b3143b67f18feeab78a6d2cccd92b8f1 /dist | |
parent | 9749c5085dc21d2064177aa748f3a9395592a7cf (diff) | |
download | qtx11extras-ec2c0f4db6350a304dcf901b9adbadc895864c14.tar.gz |
Add QX11Info::peekEventQueue() APIv5.10.0-beta3v5.10.0-beta2v5.10.0-beta1v5.10.0-alpha1
[ChangeLog][QX11Info] Added new API to peek into the
XCB event queue - peekEventQueue(). This enables porting
certain Qt4-based applications to Qt5 (those using Xlib's
event handling functions to peek into the X11 event queue).
In Qt5 we set XCB to be the owner of the X11 event queue
with XSetEventQueueOwner(dpy, XCBOwnsEventQueue), which
means that only XCB event handling functions can be used
to read events from the X server. XCB does not have an
equivalent for Xlib's peeker API. For filtering out unwanted
native events Qt5 provides QAbstractNativeEventFilter::nativeEventFilter(),
but there isn't any API in Qt to just *peek* into the queue
while the GUI thread is busy processing a long task. The
peekEventQueue() function adds this capability via QX11Info.
Manual and auto test included.
Task-number: QTBUG-50358
Change-Id: Id31f797f7ff76d011ad7a55a9b6c13756aaaca60
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions