mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-07 14:06:00 +01:00
backend/drm: disable cursor in dealloc_crtc
dealloc_crtc was destroying GBM surfaces, but the cursor_enabled flag was left as-is. When re-enabling the output, atomic_crtc_pageflip would try enabling the cursor plane, but would fail because no framebuffer is available. Closes: https://github.com/swaywm/wlroots/issues/2150
This commit is contained in:
parent
da4df82532
commit
9412d34e2d
1 changed files with 3 additions and 0 deletions
|
@ -1119,6 +1119,9 @@ static void dealloc_crtc(struct wlr_drm_connector *conn) {
|
||||||
enable_drm_connector(&conn->output, false);
|
enable_drm_connector(&conn->output, false);
|
||||||
drm_plane_finish_surface(conn->crtc->primary);
|
drm_plane_finish_surface(conn->crtc->primary);
|
||||||
drm_plane_finish_surface(conn->crtc->cursor);
|
drm_plane_finish_surface(conn->crtc->cursor);
|
||||||
|
if (conn->crtc->cursor != NULL) {
|
||||||
|
conn->crtc->cursor->cursor_enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
conn->crtc = NULL;
|
conn->crtc = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue