qt5base-lts/src
Gatis Paeglis 3af4b59e8b glib dispatcher: rework userEventSourcePrepare() event source
This is a better solution for fbb485d4f6.

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>
2018-10-14 13:41:16 +00:00
..
3rdparty Update ANGLE to chromium/3280 2018-10-13 21:36:35 +00:00
android Android: Update the targetSdkVersion in the manifest to 28 2018-10-08 11:14:03 +00:00
angle Update ANGLE to chromium/3280 2018-10-13 21:36:35 +00:00
concurrent Doc: Fix typo and grammar issues 2018-07-09 17:00:19 +00:00
corelib glib dispatcher: rework userEventSourcePrepare() event source 2018-10-14 13:41:16 +00:00
dbus Merge remote-tracking branch 'origin/5.11' into 5.12 2018-09-07 01:00:21 +02:00
gui QCss: properly parse functions which contains additional spaces 2018-10-12 22:01:14 +00:00
network wasm: rewrite QNetworkReplyWasmImpl to remove EM_ASM 2018-10-09 20:44:24 +00:00
opengl Merge remote-tracking branch 'origin/5.11' into 5.12 2018-09-07 01:00:21 +02:00
openglextensions Replace Q_DECL_FINAL with final 2017-09-22 07:30:01 +00:00
platformheaders Fix typos in the documentation 2018-09-25 23:39:06 +00:00
platformsupport glib dispatcher: rework userEventSourcePrepare() event source 2018-10-14 13:41:16 +00:00
plugins qt_mac_createRolePalettes: fix the highlight color for ItemViewPalette role 2018-10-14 09:49:47 +00:00
printsupport Merge remote-tracking branch 'origin/5.11' into 5.12 2018-09-07 01:00:21 +02:00
sql QtSql: fix code snippets 2018-10-03 10:48:50 +00:00
testlib Update 3rdparty valgrind headers to Valgrind 3.13.0 2018-10-08 14:18:54 +00:00
tools uic: Write the float and double properties in 'f' format 2018-10-05 20:06:03 +00:00
widgets Merge remote-tracking branch 'origin/5.11' into 5.12 2018-10-08 10:00:49 +02:00
winmain qtmain_winrt: Dynamically increase debug message mapping size 2018-04-09 06:48:52 +00:00
xml Merge remote-tracking branch 'origin/5.11' into 5.12 2018-09-10 12:12:46 +02:00
src.pro Move androiddeployqt to qtbase 2018-06-21 11:08:57 +00:00