From: John Lindgren Date: Fri, 26 Nov 2021 15:52:09 +0000 (-0500) Subject: Enable new outputs (before setting mode) X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=687993370faf7b517cada18dc9415c324bc53803;p=proto%2Flabwc.git 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 --- 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 =