Fix crash in QEglFSKmsGbmCursor::setPos() when cursor is disabled
This happens when there are two screens (configured in the json file), QT_QPA_EGLFS_HIDECURSOR is set, and the mouse moves to the secondary screen: m_bo is null. Pick-to: 5.15 Change-Id: I5cef9835e7c9a6a39264bf9a028bf1feeabc6995 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
ca222646ff
commit
8ad1643895
|
|
@ -248,7 +248,7 @@ void QEglFSKmsGbmCursor::setPos(const QPoint &pos)
|
|||
}
|
||||
} else {
|
||||
int ret;
|
||||
if (kmsScreen->isCursorOutOfRange()) {
|
||||
if (kmsScreen->isCursorOutOfRange() && m_bo) {
|
||||
kmsScreen->setCursorOutOfRange(false);
|
||||
uint32_t handle = gbm_bo_get_handle(m_bo).u32;
|
||||
ret = drmModeSetCursor(kmsScreen->device()->fd(), kmsScreen->output().crtc_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue