diff options
author | Simon Ser <contact@emersion.fr> | 2020-05-27 17:51:51 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-27 21:01:20 +0200 |
commit | d66b9966e9a7e5e48d07f55c2fe64b11d1d1d7a1 (patch) | |
tree | ba86fc13f2348df4593ef1ff0c5cfb2fade1889f /backend/drm | |
parent | e7a8ea84c36ea8565626da35aed4362805b4e802 (diff) |
backend/drm: fix missing crtc->cursor NULL check
Fixes: cdb6fdbc6cb7 ("backend/drm: remove missing cursor plane workaround")
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 8dc83cd3..d1abe773 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -977,6 +977,9 @@ static bool drm_connector_move_cursor(struct wlr_output *output, return false; } struct wlr_drm_plane *plane = conn->crtc->cursor; + if (!plane) { + return false; + } struct wlr_box box = { .x = x, .y = y }; |