From 301065d7324a446d93956f0c2ed9fb894c8891ad Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 29 Nov 2021 13:56:08 +0900 Subject: [PATCH] panel: redo layout when panel resizes --- apps/panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/panel.c b/apps/panel.c index 05b1bd37..efac4c98 100644 --- a/apps/panel.c +++ b/apps/panel.c @@ -84,6 +84,8 @@ int active_window = -1; static int was_tabbing = 0; static int new_focused = -1; +static void widgets_layout(void); + /** * Clip text and add ellipsis to fit a specified display width. */ @@ -650,6 +652,7 @@ static void resize_finish(int xwidth, int xheight) { bg_blob = realloc(bg_blob, bg_size); memcpy(bg_blob, ctx->backbuffer, bg_size); + widgets_layout(); update_window_list(); }