From e8a5353022f9e616c22a7a1659ff4d4d968f5d88 Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Wed, 22 Mar 2006 15:14:31 +0000 Subject: Allow changing of only a few buttons (not all). --- ChangeLog | 5 +++++ handle.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e516d6f..c515b97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-22 Matthias Hopf + + * handle.c: (do_pointer): + Allow changing of only a few buttons (not all). + 2005-12-14 Kevin E. Martin * configure.ac: diff --git a/handle.c b/handle.c index 4cd7554..1cb2a43 100644 --- a/handle.c +++ b/handle.c @@ -906,10 +906,9 @@ do_pointer(char *line, int len) } if (i > 0 && i != nbuttons) { - badheader (); - fprintf (stderr, "number of buttons, must have %d instead of %d\n", - nbuttons, i); - return; + fprintf (stderr, "Warning: Only changing the first %d of %d buttons.\n", + i, nbuttons); + i = nbuttons; } uop = AllocStruct (union op); -- cgit v1.2.3