mirror of https://github.com/xzeldon/htop.git
InfoScreen: fix mouse selection
This commit is contained in:
parent
92fb69f5a0
commit
fd45845829
|
@ -110,7 +110,7 @@ void InfoScreen_run(InfoScreen* this) {
|
|||
int ok = getmouse(&mevent);
|
||||
if (ok == OK) {
|
||||
if (mevent.y >= panel->y && mevent.y < LINES - 1) {
|
||||
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV);
|
||||
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV - 1);
|
||||
ch = 0;
|
||||
} else if (mevent.y == LINES - 1) {
|
||||
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
|
||||
|
|
Loading…
Reference in New Issue