mirror of https://github.com/xzeldon/htop.git
Fix mouseclick handling in top bar
This commit is contained in:
parent
15ab0ad706
commit
ce3114079c
2
htop.c
2
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);
|
||||
|
|
Loading…
Reference in New Issue