desktop-shell: set proper curtain size when no output is created yet

In this case the curtain width and height would be calculated using
uninitialized values, triggering warnings in pixman calls.

Signed-off-by: Arnaud Vrac <avrac@freebox.fr>
This commit is contained in:
Arnaud Vrac 2023-11-22 19:44:00 +01:00
parent 14e0fff19a
commit 03fa71f153

View File

@ -3843,7 +3843,7 @@ shell_fade_create_view(struct desktop_shell *shell)
};
struct weston_curtain *curtain;
bool first = true;
int x1, y1, x2, y2;
int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
wl_list_for_each(shell_output, &shell->output_list, link) {
struct weston_output *op = shell_output->output;