From 5b7b0f91c1c06c5893bc20cc83dd140618b34308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 24 Feb 2015 14:39:45 +0100 Subject: [PATCH] [wayland] Fix wayland cursor theme size If our size is 0, we need to pass -1 to get the proper default size. --- wayland_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()