Fix mouseclick handling in top bar

This commit is contained in:
Hisham Muhammad 2008-05-07 23:02:23 +00:00
parent 15ab0ad706
commit ce3114079c
1 changed files with 1 additions and 1 deletions

2
htop.c
View File

@ -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);