From 779ef8bb7e714eef8d48298f641a046e3d25a881 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Fri, 16 Nov 2012 16:31:49 +0000 Subject: QNX: Fix window focus problems when using QNX 6.5.0. In blackberry, activation events come through the navigator, but we might not have a navigator. Change-Id: I0d9e1a08336aa403035fdf00be46d839a83f4b58 Reviewed-by: Kevin Krammer Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp') diff --git a/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp b/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp index d8712bf569..8b41465add 100644 --- a/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp +++ b/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp @@ -276,6 +276,11 @@ void QQnxScreenEventHandler::handlePointerEvent(screen_event_t event) qScreenEventDebug() << Q_FUNC_INFO << "Qt enter, w=" << w; } } + + // If we don't have a navigator, we don't get activation events. + if (buttonState && w && w != QGuiApplication::focusWindow() && !m_qnxIntegration->supportsNavigatorEvents()) + QWindowSystemInterface::handleWindowActivated(w); + m_lastMouseWindow = qnxWindow; // Apply scaling to wheel delta and invert value for Qt. We'll probably want to scale -- cgit v1.2.3