Fix segfault while handling system-wide shortcuts with xcb

Change-Id: I8485031edc623f99b4b858d4f777be43f4bc3264
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
hluk 2013-04-22 21:04:25 +02:00 committed by The Qt Project
parent 1c17275047
commit b43609404c

View File

@ -422,7 +422,7 @@ break;
if (QXcbWindow *platformWindow = platformWindowFromId(e->event)) { \
handled = QWindowSystemInterface::handleNativeEvent(platformWindow->window(), m_nativeInterface->genericEventFilterType(), event, &result); \
if (!handled) \
m_keyboard->handler(m_focusWindow, e); \
m_keyboard->handler(m_focusWindow ? m_focusWindow : platformWindow, e); \
} \
} \
break;