diff options
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbintegration.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbintegration.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbintegration.cpp b/src/plugins/platforms/xcb/qxcbintegration.cpp index 2249446242..5168bd818b 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.cpp +++ b/src/plugins/platforms/xcb/qxcbintegration.cpp @@ -172,7 +172,6 @@ QXcbIntegration::QXcbIntegration(const QStringList ¶meters, int &argc, char } m_fontDatabase.reset(new QGenericUnixFontDatabase()); - m_inputContext.reset(QPlatformInputContextFactory::create()); } QXcbIntegration::~QXcbIntegration() @@ -292,6 +291,13 @@ QAbstractEventDispatcher *QXcbIntegration::createEventDispatcher() const return createUnixEventDispatcher(); } +void QXcbIntegration::initialize() +{ + // Perform everything that may potentially need the event dispatcher (timers, socket + // notifiers) here instead of the constructor. + m_inputContext.reset(QPlatformInputContextFactory::create()); +} + void QXcbIntegration::moveToScreen(QWindow *window, int screen) { Q_UNUSED(window); |