summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2006-03-22 15:14:31 +0000
committerMatthias Hopf <mhopf@suse.de>2006-03-22 15:14:31 +0000
commite8a5353022f9e616c22a7a1659ff4d4d968f5d88 (patch)
tree1abcb0ed0b8b04290b4ebb46b6a5a229641dcd59
parentb9854ab5e66bf9ec8911d6573440738325cd51b4 (diff)
Allow changing of only a few buttons (not all).XORG-7_0_99_901
-rw-r--r--ChangeLog5
-rw-r--r--handle.c7
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 <mhopf@suse.de>
+
+ * handle.c: (do_pointer):
+ Allow changing of only a few buttons (not all).
+
2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org>
* 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);