HYL_OK3568_LINUX/buildroot/package/weston/0043-desktop-shell-Use-real-size-for-non-image-background.patch
2025-05-10 21:49:39 +08:00

34 lines
921 B
Diff

From 3b7397ba0b6288b92c1479724bcd66d632930db3 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Mon, 22 Mar 2021 22:54:28 +0800
Subject: [PATCH 43/93] desktop-shell: Use real size for non-image background
Currently we are faking 1x1 size for non-image background, which would
causing incorrect opaque region.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
clients/desktop-shell.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 2d2fd83..a5d59a5 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -831,12 +831,6 @@ background_configure(void *data,
return;
}
- if (!background->image && background->color) {
- widget_set_viewport_destination(background->widget, width, height);
- width = 1;
- height = 1;
- }
-
widget_schedule_resize(background->widget, width, height);
}
--
2.20.1