~sircmpwn/wio

Enable output to start from VT v1 PROPOSED

Willy Goiffon: 1
 Enable output to start from VT

 1 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/wio/patches/15055/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Enable output to start from VT Export this patch

This fixes #17, where the compositor fails to run when started from a
bare VT.

---
 output.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/output.c b/output.c
index 6244b7f..a88d8ac 100644
--- a/output.c
+++ b/output.c
@@ -469,14 +469,17 @@ void server_new_output(struct wl_listener *listener, void *data) {
		if (config->transform) {
			wlr_output_set_transform(wlr_output, config->transform);
		}
		wlr_output_enable(wlr_output, true);
	} else {
		struct wlr_output_mode *mode =
			wlr_output_preferred_mode(wlr_output);
		if (mode) {
			wlr_output_set_mode(wlr_output, mode);
		}
		wlr_output_enable(wlr_output, true);
		wlr_output_layout_add_auto(server->output_layout, wlr_output);
	}

	wlr_output_commit(wlr_output);
	wlr_output_create_global(wlr_output);
}
-- 
2.29.2