From b9d36c8149536cff1aa229f59337dcfa2f70a37b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 20 Jun 2017 17:51:45 -0400 Subject: Add dynamic output resizing for Wayland backend This allows outputs to: - Not support modesetting - Resize themselves --- backend/drm/drm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index befbfb94..5afdf3c3 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -260,6 +260,7 @@ static bool wlr_drm_output_set_mode(struct wlr_output_state *output, output->width = output->wlr_output->width = mode->width; output->height = output->wlr_output->height = mode->height; output->wlr_output->current_mode = mode; + wl_signal_emit(&output->wlr_output->events.resolution, output->wlr_output); if (!display_init_renderer(&state->renderer, output)) { wlr_log(L_ERROR, "Failed to initalise renderer for %s", output->wlr_output->name); -- cgit v1.2.3