diff options
author | Benjamin Close <Benjamin.Close@clearchain.com> | 2009-03-12 21:17:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-21 22:05:32 +1000 |
commit | 199c323332dac782b45dcb092da0322149843d5a (patch) | |
tree | ba82f7410d56e8810eeb0118704668fd789061d6 | |
parent | 49ef8a40f96c0383a8a42a78fda3a990ac934e59 (diff) |
Error out when more than one instance of a name exists
Previously the check was in place for the duplicate name, however the first
device with the requested name was still selected regardless.
Correct this by exiting out forcing the user to select by id instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/xinput.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xinput.c b/src/xinput.c index 466a814..1ee8bbf 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -191,6 +191,7 @@ find_device_info(Display *display, "Warning: There are multiple devices named \"%s\".\n" "To ensure the correct one is selected, please use " "the device ID instead.\n\n", name); + return NULL; } else { found = &devices[loop]; } |