Do not accept choice unless mouse has actually moved before.

pull/1761/head
nicm 2019-05-26 18:19:52 +00:00
parent e90d4a6021
commit 023c2c5392
1 changed files with 1 additions and 1 deletions

2
menu.c
View File

@ -226,9 +226,9 @@ menu_key_cb(struct client *c, struct key_event *event)
}
return (0);
}
md->choice = m->y - (md->py + 1);
if (MOUSE_RELEASE(m->b))
goto chosen;
md->choice = m->y - (md->py + 1);
if (md->choice != old)
c->flags |= CLIENT_REDRAWOVERLAY;
return (0);