From 28a13af1f4abba55b9e4e2bc2b2518010cc7a01e Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 10 Oct 2022 18:41:21 +0900 Subject: [PATCH] compositor: resize extended clip context when display resizes --- apps/compositor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/compositor.c b/apps/compositor.c index 3bc2a443..912c6baf 100644 --- a/apps/compositor.c +++ b/apps/compositor.c @@ -1018,6 +1018,13 @@ static void resize_display(yutani_globals_t * yg) { blur_ctx = init_graphics_sprite(blur_sprite); clip_ctx->width = yg->backend_ctx->width; clip_ctx->height = yg->backend_ctx->height; + + /* reinitialize extended clip context or we won't be drawing enough later... */ + if (clip_ctx->clips && clip_ctx->clips_size) { + free(clip_ctx->clips); + clip_ctx->clips_size = 0; + clip_ctx->clips = NULL; + } #endif TRACE("graphics context resized...");