mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: remove crtc_set_cursor from interface
This commit is contained in:
parent
f8e02db4bc
commit
da63d11d34
5 changed files with 30 additions and 70 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue