diff options
author | gandalf3 <gandalf3@blendermonkey.com> | 2023-03-14 12:55:54 -0700 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-04-12 08:41:35 +0200 |
commit | 7a7c6938aad999f33ceb1e4ec5ebaada4c461f29 (patch) | |
tree | f8db7e2f563427c48899fd499cdb062d7f1f7db8 /ProcessList.c | |
parent | 467bb78bb1cedc1709216ef38424ecb3928263ea (diff) |
Fix scroll relative to followed process
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c index 9d213d1d..8e989d02 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -413,7 +413,8 @@ void ProcessList_rebuildPanel(ProcessList* this) { if (this->following != -1 && p->pid == this->following) { foundFollowed = true; Panel_setSelected(this->panel, idx); - this->panel->scrollV = currScrollV; + /* Keep scroll position relative to followed process */ + this->panel->scrollV = idx - (currPos-currScrollV); } idx++; } |