summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-11-07 21:04:56 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-11-07 21:04:56 +0000
commitaa30e4748c81e0d6a52b82429d597e51c2e53ec2 (patch)
treebe772dd0e59ebff496bb38dc2cb981ece4b20039
parent6cd96099d6e224010d54164be85a0d123d6e543a (diff)
add comment why we mouse unbind, just like kbd
-rw-r--r--app/cwm/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 25813adf3..78691b27a 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/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 <sys/param.h>
@@ -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) {