Commit edd443f6 authored by Laércio de Sousa's avatar Laércio de Sousa Committed by Adam Jackson

kdrive: don't let evdev driver overwrite existing device names

KDrive evdev driver deliberately name grabbed devices as "Evdev mouse"
or "Evdev keyboard". This patch will make it skip this step if grabbed
devices are already named (i.e. from udev).
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: Laércio de Sousa's avatarLaércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
parent 0b80da0d
......@@ -220,7 +220,8 @@ EvdevPtrInit(KdPointerInfo * pi)
close(fd);
pi->name = strdup("Evdev mouse");
if (!pi->name)
pi->name = strdup("Evdev mouse");
return Success;
}
......@@ -390,7 +391,8 @@ EvdevKbdInit(KdKeyboardInfo * ki)
close(fd);
ki->name = strdup("Evdev keyboard");
if (!ki->name)
ki->name = strdup("Evdev keyboard");
readMapping(ki);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment