From 8fc16890c713990ca6dbe89b34e70c78564b4a0f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 27 Dec 2019 11:59:15 +0100 Subject: output: refuse to commit a buffer or modeset a disabled output References: https://github.com/swaywm/wlroots/issues/1780#issuecomment-518938390 --- backend/drm/drm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index dea79d7a..e6b99bee 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -446,7 +446,9 @@ static bool drm_connector_commit(struct wlr_output *output) { } } - if (output->pending.committed & WLR_OUTPUT_STATE_BUFFER) { + // TODO: support modesetting with a buffer + if (output->pending.committed & WLR_OUTPUT_STATE_BUFFER && + !(output->pending.committed & WLR_OUTPUT_STATE_MODE)) { if (!drm_connector_commit_buffer(output)) { return false; } -- cgit v1.2.3