1From 7707854c710c31e4bbff049f30d89f3a149169fb Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Mon, 17 Jul 2023 18:26:11 +0800 4Subject: [PATCH 94/94] clients: Ignore minimum size for panel and background 5 6The toy toolkit clients would use the initial size as minimum size. 7 8We don't need that for panel and background, since the output is 9resizable now. 10 11Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 12--- 13 clients/desktop-shell.c | 6 ++++++ 14 1 file changed, 6 insertions(+) 15 16diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c 17index 0ce571a..2eb8a44 100644 18--- a/clients/desktop-shell.c 19+++ b/clients/desktop-shell.c 20@@ -674,6 +674,9 @@ panel_create(struct desktop *desktop, struct output *output) 21 22 panel_add_launchers(panel, desktop); 23 24+ /* HACK: Set an dummy initial size for no minimum size */ 25+ window_schedule_resize(panel->window, 1, 1); 26+ 27 return panel; 28 } 29 30@@ -1188,6 +1191,9 @@ background_create(struct desktop *desktop, struct output *output) 31 32 free(type); 33 34+ /* HACK: Set an dummy initial size for no minimum size */ 35+ window_schedule_resize(background->window, 1, 1); 36+ 37 return background; 38 } 39 40-- 412.20.1 42 43