summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-05-07 23:02:23 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-05-07 23:02:23 +0000
commitce3114079c9927de110497bb79d54aecff944d70 (patch)
tree8ff7dc7620a26a4186ec9de43bf55eaeba48c61b
parent15ab0ad706465775ab7b7780862cb5096379967d (diff)
Fix mouseclick handling in top bar
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index b3439f37..c74b6b3e 100644
--- a/htop.c
+++ b/htop.c
@@ -459,7 +459,7 @@ int main(int argc, char** argv) {
int ok = getmouse(&mevent);
if (ok == OK) {
if (mevent.y == panel->y) {
- int x = panel->scrollH + mevent.x;
+ int x = panel->scrollH + mevent.x + 1;
ProcessField field = ProcessList_keyAt(pl, x);
if (field == pl->sortKey) {
ProcessList_invertSortOrder(pl);

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