diff --git a/wayland_backend.cpp b/wayland_backend.cpp index f2bd79d5fa..b29fa5b8f6 100644 --- a/wayland_backend.cpp +++ b/wayland_backend.cpp @@ -335,7 +335,7 @@ void WaylandCursorTheme::loadTheme() destroyTheme(); } m_theme = wl_cursor_theme_load(c->themeName().toUtf8().constData(), - c->themeSize(), m_backend->shmPool()->shm()); + c->themeSize() ? c->themeSize() : -1, m_backend->shmPool()->shm()); } void WaylandCursorTheme::destroyTheme()