mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
Added null check on crtc
This commit is contained in:
parent
ef1f947d49
commit
a77fac0760
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ static void session_signal(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_output_state *output = drm->outputs->items[i];
|
struct wlr_output_state *output = drm->outputs->items[i];
|
||||||
wlr_drm_output_start_renderer(output);
|
wlr_drm_output_start_renderer(output);
|
||||||
|
|
||||||
|
if (!output->crtc) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
struct wlr_drm_plane *plane = output->crtc->cursor;
|
struct wlr_drm_plane *plane = output->crtc->cursor;
|
||||||
|
|
||||||
drm->iface->crtc_set_cursor(drm, output->crtc,
|
drm->iface->crtc_set_cursor(drm, output->crtc,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue