diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-09-06 20:37:01 +0200 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2008-09-07 11:29:53 +0200 |
commit | 89b6a9cd71f9e686c5be4da4523b86c6d7f160dd (patch) | |
tree | 36bbb60d4027ea07556935ae9dacdf926a38d6f9 | |
parent | 773ea37888a716656017e16ef31f843432027b66 (diff) |
Fix the "No such device" problem when reloading a driver
The xf86SetStrOption function only sets the option variable to the local default if not already
set to something else. Thus, the code which reloads a particular device by using this function
often fails, simply because the sought device name isnt set properly.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | src/synaptics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index f4c3043..a5ca61c 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -176,7 +176,7 @@ SetDeviceAndProtocol(LocalDevicePtr local) device = xf86FindOptionValue(local->options, "Device"); if (!device) { device = xf86FindOptionValue(local->options, "Path"); - xf86SetStrOption(local->options, "Device", device); + xf86ReplaceStrOption(local->options, "Device", device); } if (device && strstr(device, "/dev/input/event")) { #ifdef BUILD_EVENTCOMM |