diff options
-rw-r--r-- | backend/drm/drm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 9e71e45e..12aacd80 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -941,14 +941,8 @@ static bool drm_connector_set_cursor(struct wlr_output *output, } struct wlr_drm_plane *plane = crtc->cursor; - if (!plane) { - // We don't have a real cursor plane, so we make a fake one - plane = calloc(1, sizeof(*plane)); - if (!plane) { - wlr_log_errno(WLR_ERROR, "Allocation failed"); - return false; - } - crtc->cursor = plane; + if (plane == NULL) { + return false; } if (!plane->surf.gbm) { |