Commit ce311407 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Fix mouseclick handling in top bar

parent 15ab0ad7
...@@ -459,7 +459,7 @@ int main(int argc, char** argv) { ...@@ -459,7 +459,7 @@ int main(int argc, char** argv) {
int ok = getmouse(&mevent); int ok = getmouse(&mevent);
if (ok == OK) { if (ok == OK) {
if (mevent.y == panel->y) { if (mevent.y == panel->y) {
int x = panel->scrollH + mevent.x; int x = panel->scrollH + mevent.x + 1;
ProcessField field = ProcessList_keyAt(pl, x); ProcessField field = ProcessList_keyAt(pl, x);
if (field == pl->sortKey) { if (field == pl->sortKey) {
ProcessList_invertSortOrder(pl); ProcessList_invertSortOrder(pl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment