Do not accept choice unless mouse has actually moved before.

This commit is contained in:
nicm 2019-05-26 18:19:52 +00:00
parent e90d4a6021
commit 023c2c5392

2
menu.c
View File

@ -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);