mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-06 21:45:58 +01:00
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.
This commit is contained in:
parent
a0345f2854
commit
651c876e79
2 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,7 @@ static void handle_session_active(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
struct wlr_output_state state = {
|
||||
.committed = committed,
|
||||
.allow_artifacts = true,
|
||||
.enabled = mode != NULL,
|
||||
.mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
|
||||
.mode = mode,
|
||||
|
|
|
@ -1050,6 +1050,7 @@ static void dealloc_crtc(struct wlr_drm_connector *conn) {
|
|||
|
||||
struct wlr_output_state output_state = {
|
||||
.committed = WLR_OUTPUT_STATE_ENABLED,
|
||||
.allow_artifacts = true,
|
||||
.enabled = false,
|
||||
};
|
||||
struct wlr_drm_connector_state conn_state = {0};
|
||||
|
|
Loading…
Reference in a new issue