[wayland] Fix wayland cursor theme size

If our size is 0, we need to pass -1 to get the proper default size.
This commit is contained in:
Martin Gräßlin 2015-02-24 14:39:45 +01:00
parent fafa22d0c6
commit 5b7b0f91c1

View file

@ -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()