backend-wayland: fix --fullscreen

Don't forget to transfer the fullscreen setting from the config to the backend.
Without this, weston tries to resize the window with the windowed output API but
that is not registered with new_config.fullscreen == true.

This code was accidentally lost in 0a5bb7acff
("backend-wayland: Use renderer enum type for config selection"). So just
restore it.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
Michael Olbrich 2023-05-30 08:26:26 +02:00
parent 686f0d4f2b
commit 4ce6b1e498
1 changed files with 2 additions and 0 deletions

View File

@ -2897,6 +2897,8 @@ wayland_backend_create(struct weston_compositor *compositor,
create_cursor(b, new_config);
b->fullscreen = new_config->fullscreen;
b->formats_count = ARRAY_LENGTH(wayland_formats);
b->formats = pixel_format_get_array(wayland_formats, b->formats_count);