backend/drm: remove crtc_set_cursor from interface

This commit is contained in:
Simon Ser 2020-05-07 21:28:42 +02:00
parent f8e02db4bc
commit da63d11d34
5 changed files with 30 additions and 70 deletions

View file

@ -100,19 +100,6 @@ static void session_signal(struct wl_listener *listener, void *data) {
} else {
enable_drm_connector(&conn->output, false);
}
if (!conn->crtc) {
continue;
}
struct wlr_drm_plane *plane = conn->crtc->cursor;
struct gbm_bo *bo = NULL;
if (plane->cursor_enabled) {
bo = drm_fb_acquire(&plane->current_fb, drm,
&plane->mgpu_surf);
}
drm->iface->crtc_set_cursor(drm, conn->crtc, bo);
}
} else {
wlr_log(WLR_INFO, "DRM fd paused");