mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Add dynamic output resizing for Wayland backend
This allows outputs to: - Not support modesetting - Resize themselves
This commit is contained in:
parent
c9d5a0b2fb
commit
b9d36c8149
10 changed files with 75 additions and 90 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue