hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 066b69b8f726bd5a6e6a3afda224e8ad78ad2140 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 40/62] 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 56c3976f..9d17e702 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -870,12 +870,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