diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-09-07 13:48:34 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-10-14 13:41:16 +0000 |
commit | 3af4b59e8b59c7b658c925e1f644d31b89e39896 (patch) | |
tree | af8b0d3822974f5be259c92719db46553fed89de /.gitattributes | |
parent | f5204067a02bd0c13500ea6e66bb9211701f96db (diff) |
glib dispatcher: rework userEventSourcePrepare() event source
This is a better solution for fbb485d4f6985643b27da3cc6c5b5f960c32e74d.
The existing solution was working fine, but it was exposing logic that is
internal to QWindowSystemInterface and platform plugin interaction. Some
platform plugins do event filtering at native event level - those that
support QAbstractEventDispatcher::filterNativeEvent(). Other plugins rely
on QWindowSystemInterface to do the filtering. Dispatchers should not care
about this.
The new logic rely on the fact that QWindowSystemInterfacePrivate::handleWindowSystemEvent
calls QAbstractEventDispatcher::wakeUp(). The same way postEventSourcePrepare()
rely on QCoreApplication::postEvent() to call QAbstractEventDispatcher::wakeUp().
Event sources run in the order they are attached, postEventSourcePrepare runs
before userEventSourcePrepare(). We rely on that order to pass wakeUpCalled
value.
Change-Id: I0327f4f2398fd863fb2421b8033bb1df8d65f5af
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions