This reverts commit 3cf004b68e. Unfortunately, 3cf004b broke a couple of tests in kwin due to Qt not emitting QAbstractEventDispatcher::aboutToBlock() signal when macros such as QTRY_VERIFY() or QTRY_COMPARE() spin the event loop.
3cf004b68e
3cf004b