Signed-off-by: Alvaro Fernando García <[email protected]>
---
 src/compositor-drm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 4d23b7c..3c455bf 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -1310,10 +1310,14 @@ init_drm(struct drm_compositor *ec, struct udev_device 
*device)
        ret = drmGetCap(fd, DRM_CAP_CURSOR_WIDTH, &cap);
        if (ret == 0)
                ec->cursor_width = cap;
+       else
+               ec->cursor_width = 64;
 
        ret = drmGetCap(fd, DRM_CAP_CURSOR_HEIGHT, &cap);
        if (ret == 0)
                ec->cursor_height = cap;
+       else
+               ec->cursor_height = 64;
 
        return 0;
 }
-- 
2.0.0

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to