mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-12 16:35:58 +01:00
backend/drm: fix missing crtc->cursor NULL check
Fixes: cdb6fdbc6c
("backend/drm: remove missing cursor plane workaround")
This commit is contained in:
parent
e7a8ea84c3
commit
d66b9966e9
1 changed files with 3 additions and 0 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in a new issue