Do not assume QEGLPlatformCursor in the common egl bits
The kms hook uses a custom QPlatformCursor. Change-Id: I4543df6314a45abfc20495cbffdd376aed8bbe93 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>bb10
parent
b1cbc1289f
commit
0366801120
|
|
@ -354,7 +354,7 @@ void QEGLPlatformIntegration::createInputHandlers()
|
|||
m_kbdMgr = new QEvdevKeyboardManager(QLatin1String("EvdevKeyboard"), QString() /* spec */, this);
|
||||
QEvdevMouseManager *mouseMgr = new QEvdevMouseManager(QLatin1String("EvdevMouse"), QString() /* spec */, this);
|
||||
Q_FOREACH (QScreen *screen, QGuiApplication::screens()) {
|
||||
QEGLPlatformCursor *cursor = static_cast<QEGLPlatformCursor *>(screen->handle()->cursor());
|
||||
QEGLPlatformCursor *cursor = qobject_cast<QEGLPlatformCursor *>(screen->handle()->cursor());
|
||||
if (cursor)
|
||||
cursor->setMouseDeviceDiscovery(mouseMgr->deviceDiscovery());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue