backend/drm: fix missing crtc->cursor NULL check

Fixes: cdb6fdbc6c ("backend/drm: remove missing cursor plane workaround")
This commit is contained in:
Simon Ser 2020-05-27 17:51:51 +02:00 committed by Drew DeVault
parent e7a8ea84c3
commit d66b9966e9
1 changed files with 3 additions and 0 deletions

View File

@ -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 };