summaryrefslogtreecommitdiff
path: root/XOrg
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-25 16:12:31 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-30 11:17:05 +1000
commitfecf19e492c6f2835b08290f42c62d4d62ebe0a3 (patch)
tree7743f91b3231581c6fd3b25bc4b4dac9fcc9d19a /XOrg
parente8806d4f08cd4707d5c563c70201cbcbb844f8e2 (diff)
XOrg: if the device node isn't set, Option Device sets it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XOrg')
-rwxr-xr-xXOrg/InputDevice.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/XOrg/InputDevice.pm b/XOrg/InputDevice.pm
index c94c8b5..5e4f191 100755
--- a/XOrg/InputDevice.pm
+++ b/XOrg/InputDevice.pm
@@ -135,6 +135,9 @@ sub add_option {
my $opt = shift;
my $val = shift;
+ if ($opt eq "Device" and not defined $self->{options}->{Device}) {
+ $self->devicenode($val);
+ }
$self->{options}->{$opt} = $val;
}