mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
backend/drm: leave CRTCs on when shutting down
This avoids a black screen during multiple seconds on shutdown. To fully allow for flicker-free transitions between DRM masters, we will also need [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4394 Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3497
This commit is contained in:
parent
4932e0d347
commit
b0bd86285f
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ static void backend_destroy(struct wlr_backend *backend) {
|
|||
|
||||
struct wlr_drm_connector *conn, *next;
|
||||
wl_list_for_each_safe(conn, next, &drm->connectors, link) {
|
||||
conn->crtc = NULL; // leave CRTCs on when shutting down
|
||||
destroy_drm_connector(conn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue