diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-22 17:12:38 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-12-23 12:47:04 +0100 |
commit | 86d293125565a15bbd94683080dbc755c5d7edee (patch) | |
tree | b0a2f530cc5f633bebdf22124d8ce2d91ecf765b /MainPanel.c | |
parent | 0672be7db1ed50fceff0619e1411b510aa11f0f7 (diff) |
Restore highlighted header of current sorted process column
Diffstat (limited to 'MainPanel.c')
-rw-r--r-- | MainPanel.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/MainPanel.c b/MainPanel.c index 949138dc..c8a4c059 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -102,7 +102,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { MainPanel_updateTreeFunctions(this, this->state->settings->treeView); } if (reaction & HTOP_UPDATE_PANELHDR) { - ProcessList_printHeader(this->state->pl, Panel_getHeader(super)); + result |= REDRAW; } if (reaction & HTOP_REFRESH) { result |= REFRESH; @@ -168,13 +168,19 @@ static void MainPanel_drawFunctionBar(Panel* super) { } } +static void MainPanel_printHeader(Panel* super) { + MainPanel* this = (MainPanel*) super; + ProcessList_printHeader(this->state->pl, &super->header); +} + const PanelClass MainPanel_class = { .super = { .extends = Class(Panel), .delete = MainPanel_delete }, .eventHandler = MainPanel_eventHandler, - .drawFunctionBar = MainPanel_drawFunctionBar + .drawFunctionBar = MainPanel_drawFunctionBar, + .printHeader = MainPanel_printHeader }; MainPanel* MainPanel_new() { |