aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/drm.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-11 10:53:17 +0200
committerSimon Ser <contact@emersion.fr>2020-05-12 08:57:13 +0200
commitcdb6fdbc6cb734e174bfcb53e4622eeef89d0d79 (patch)
tree080c7f34c309a8e8d6a0323dfe537fbf964a1503 /backend/drm/drm.c
parentc2288a7b88240e4377bfc1c67b44efb58f704a42 (diff)
backend/drm: remove missing cursor plane workaround
We have a workaround for legacy drivers that support drmModeSetCursor without exposing a cursor plane. It doesn't work anymore now that we've moved to a more atomic interface. Let's just remove this workaround and fallback to software cursors. Closes: https://github.com/swaywm/wlroots/issues/2166
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r--backend/drm/drm.c10
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) {