summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-28 04:09:06 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commitb815e4c7a3cdcc64e3c5a28414ef2450bc9d5ebd (patch)
tree664a7c3d8366b13e48410cd11df55aa0ccd641a3 /htop.c
parent4791050ceaf24a32e08505015faf07c43580763c (diff)
Add support for multiple screens, switchable using Tab
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/htop.c b/htop.c
index 239b5d6e..a01456fd 100644
--- a/htop.c
+++ b/htop.c
@@ -203,12 +203,12 @@ int main(int argc, char** argv) {
MainPanel* panel = MainPanel_new();
ProcessList_setPanel(pl, (Panel*) panel);
- MainPanel_updateTreeFunctions(panel, settings->treeView);
+ MainPanel_updateTreeFunctions(panel, settings->screens[0]->treeView);
if (flags.sortKey > 0) {
- settings->sortKey = flags.sortKey;
- settings->treeView = false;
- settings->direction = 1;
+ settings->screens[0]->sortKey = flags.sortKey;
+ settings->screens[0]->treeView = false;
+ settings->screens[0]->direction = 1;
}
ProcessList_printHeader(pl, Panel_getHeader((Panel*)panel));

© 2014-2024 Faster IT GmbH | imprint | privacy policy