From cd312582d85e9bae6ecccf6b5bc9a290bd27d45f Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 7 Nov 2012 21:04:55 +0000 Subject: add comment why we mouse unbind, just like kbd --- conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 25813ad..78691b2 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.105 2012/11/07 21:01:48 okan Exp $ + * $OpenBSD: conf.c,v 1.106 2012/11/07 21:04:55 okan Exp $ */ #include @@ -571,6 +571,7 @@ conf_mousebind(struct conf *c, char *name, char *binding) if (errstr) warnx("number of buttons is %s: %s", errstr, substring); + /* We now have the correct binding, remove duplicates. */ conf_mouseunbind(c, current_binding); if (strcmp("unmap", binding) == 0) { -- cgit v1.2.3-2-gb3c3