From ce3114079c9927de110497bb79d54aecff944d70 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 7 May 2008 23:02:23 +0000 Subject: [PATCH] Fix mouseclick handling in top bar --- htop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);