From d0127f66e4685eedae7eba80a2c50452f3bb6b2f Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 15 Jun 2026 18:12:50 +0800 Subject: [PATCH] =?UTF-8?q?perf(runtime):=20bar=20=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E8=A7=81=E6=97=B6=E8=B7=B3=E8=BF=87=E6=9B=B4=E6=96=B0=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=97=A0=E6=95=88=E9=87=8D=E7=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runtime/runtime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 1a58fdf..afb4e82 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -484,6 +484,8 @@ static void runtime_handle_event(runtime_t *runtime, short int revents) { static inline void runtime_update_bar(runtime_t *runtime) { auto bar = &runtime->bar; + if (!bar->visible) return; + bar_update(bar); bar_draw(bar); backend_flush(runtime->backend);