From b9b56edc687c45140e8e052d34025a08643cf40b Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 30 May 2023 08:26:26 +0200 Subject: [PATCH] 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 0a5bb7acff06a52769efb0c878e6321fc78848ca ("backend-wayland: Use renderer enum type for config selection"). So just restore it. Signed-off-by: Michael Olbrich (cherry picked from commit 4ce6b1e498e8d6ffe8493d9531018fa21380676b) --- libweston/backend-wayland/wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libweston/backend-wayland/wayland.c b/libweston/backend-wayland/wayland.c index 1808a98bb..48c21b99a 100644 --- a/libweston/backend-wayland/wayland.c +++ b/libweston/backend-wayland/wayland.c @@ -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);