]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Enable new outputs (before setting mode)
authorJohn Lindgren <john@jlindgren.net>
Fri, 26 Nov 2021 15:52:09 +0000 (10:52 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 26 Nov 2021 16:13:58 +0000 (16:13 +0000)
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

index d215ff8a05ed1cb4eb2bb1ea0537244ca6155635..239a1d02ff54818983b6e5eba0a897efdd8cd974 100644 (file)
@@ -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 =