mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Do not accept choice unless mouse has actually moved before.
This commit is contained in:
parent
e90d4a6021
commit
023c2c5392
2
menu.c
2
menu.c
@ -226,9 +226,9 @@ menu_key_cb(struct client *c, struct key_event *event)
|
|||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
md->choice = m->y - (md->py + 1);
|
|
||||||
if (MOUSE_RELEASE(m->b))
|
if (MOUSE_RELEASE(m->b))
|
||||||
goto chosen;
|
goto chosen;
|
||||||
|
md->choice = m->y - (md->py + 1);
|
||||||
if (md->choice != old)
|
if (md->choice != old)
|
||||||
c->flags |= CLIENT_REDRAWOVERLAY;
|
c->flags |= CLIENT_REDRAWOVERLAY;
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user