From 37737387ac9bdcae2d9643cf6fc81471bb09499e Mon Sep 17 00:00:00 2001 From: Barry Van Deerlin Date: Wed, 21 Jan 2026 06:50:12 -0800 Subject: [PATCH] revert: fix: don't always update metrics on redraw (#1502) Closes: https://github.com/aristocratos/btop/issues/1500 --- src/btop_input.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/btop_input.cpp b/src/btop_input.cpp index ab4a05f..ffd4e02 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -254,11 +254,9 @@ namespace Input { return; } Config::current_preset = -1; - if (Proc::shown) Proc::resized = true; Draw::calcSizes(); Draw::update_clock(true); - Proc::resized = false; - Runner::run("all", true, true); + Runner::run("all", false, true); return; } else if (is_in(key, "p", "P") and Config::preset_list.size() > 1) { @@ -275,11 +273,9 @@ namespace Input { Config::current_preset = old_preset; return; } - if (Proc::shown) Proc::resized = true; Draw::calcSizes(); Draw::update_clock(true); - Proc::resized = false; - Runner::run("all", true, true); + Runner::run("all", false, true); return; } else if (is_in(key, "ctrl_r")) { kill(getpid(), SIGUSR2);