diff options
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r-- | backend/drm/atomic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 3e8866ad..54024d86 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -177,6 +177,10 @@ bool legacy_crtc_move_cursor(struct wlr_drm_backend *drm, static bool atomic_crtc_move_cursor(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, int x, int y) { + if (!crtc || !crtc->cursor) { + return true; + } + struct wlr_drm_plane *plane = crtc->cursor; // We can't use atomic operations on fake planes if (plane->id == 0) { |