diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-20 17:51:45 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-20 17:51:45 -0400 |
commit | b9d36c8149536cff1aa229f59337dcfa2f70a37b (patch) | |
tree | 1381f243d1bb9df41691e2b92593a8495bb80f37 /backend/drm | |
parent | c9d5a0b2fb5686627344922138c3c603cae364bc (diff) |
Add dynamic output resizing for Wayland backend
This allows outputs to:
- Not support modesetting
- Resize themselves
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |