diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index edec71ad..cd9fd3a6 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -850,6 +850,12 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
850 | return; | 850 | return; |
851 | } | 851 | } |
852 | 852 | ||
853 | if (!wlr_output_init_render(wlr_output, server->allocator, | ||
854 | server->renderer)) { | ||
855 | sway_log(SWAY_ERROR, "Failed to init output render"); | ||
856 | return; | ||
857 | } | ||
858 | |||
853 | struct sway_output *output = output_create(wlr_output); | 859 | struct sway_output *output = output_create(wlr_output); |
854 | if (!output) { | 860 | if (!output) { |
855 | return; | 861 | return; |