diff options
author | Matthias Hopf <mhopf@suse.de> | 2006-03-22 15:14:31 +0000 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2006-03-22 15:14:31 +0000 |
commit | e8a5353022f9e616c22a7a1659ff4d4d968f5d88 (patch) | |
tree | 1abcb0ed0b8b04290b4ebb46b6a5a229641dcd59 /handle.c | |
parent | b9854ab5e66bf9ec8911d6573440738325cd51b4 (diff) |
Allow changing of only a few buttons (not all).XORG-7_0_99_901
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |