Merge pull request #4085 from dos1/wayland-cursor

IrrDeviceWayland: Don't try to use non-existent wl_pointer object
This commit is contained in:
Deve 2019-10-08 08:31:45 +02:00 committed by GitHub
commit c801191d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1253,6 +1253,9 @@ void CIrrDeviceWayland::createDriver()
void CIrrDeviceWayland::updateCursor()
{
if (!m_pointer)
return;
if (!getCursorControl()->isVisible() && CreationParams.Fullscreen)
{
wl_pointer_set_cursor(m_pointer, m_enter_serial, NULL, 0, 0);