backend/drm: fix missing wlr_output_state.allow_artifacts

Without allow_artifacts, applying the new state will fail because
it requires ALLOW_MODESET.

Fixes VT switch and disabling CRTCs.
Simon Ser 2 years ago
parent a0345f2854
commit 651c876e79

@ -115,6 +115,7 @@ static void handle_session_active(struct wl_listener *listener, void *data) {
} }
struct wlr_output_state state = { struct wlr_output_state state = {
.committed = committed, .committed = committed,
.allow_artifacts = true,
.enabled = mode != NULL, .enabled = mode != NULL,
.mode_type = WLR_OUTPUT_STATE_MODE_FIXED, .mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
.mode = mode, .mode = mode,

@ -1050,6 +1050,7 @@ static void dealloc_crtc(struct wlr_drm_connector *conn) {
struct wlr_output_state output_state = { struct wlr_output_state output_state = {
.committed = WLR_OUTPUT_STATE_ENABLED, .committed = WLR_OUTPUT_STATE_ENABLED,
.allow_artifacts = true,
.enabled = false, .enabled = false,
}; };
struct wlr_drm_connector_state conn_state = {0}; struct wlr_drm_connector_state conn_state = {0};

Loading…
Cancel
Save