From 687993370faf7b517cada18dc9415c324bc53803 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Fri, 26 Nov 2021 10:52:09 -0500 Subject: [PATCH] Enable new outputs (before setting mode) Fixes the following error with wlroots-git 0.14.0.r391.g585a908a-1: [DEBUG] [types/output/output.c:603] Tried to modeset a disabled output --- src/output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output.c b/src/output.c index d215ff8a..239a1d02 100644 --- a/src/output.c +++ b/src/output.c @@ -955,6 +955,9 @@ new_output_notify(struct wl_listener *listener, void *data) return; } + wlr_log(WLR_DEBUG, "enable output"); + wlr_output_enable(wlr_output, true); + /* The mode is a tuple of (width, height, refresh rate). */ wlr_log(WLR_DEBUG, "set preferred mode"); struct wlr_output_mode *preferred_mode =