diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-07-09 17:12:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-07-09 17:12:10 +0000 |
commit | 0f37353012979ea2deea1b2e3bf1dfd4cefb5c21 (patch) | |
tree | 5854b0807c6b4bf2a34ce62b38a505627abb0813 /lib/Xconfig/xfree.pm | |
parent | dad872e0360175f53335d6ad8425544d04f34886 (diff) | |
download | drakx-kbd-mouse-x11-0f37353012979ea2deea1b2e3bf1dfd4cefb5c21.tar drakx-kbd-mouse-x11-0f37353012979ea2deea1b2e3bf1dfd4cefb5c21.tar.gz drakx-kbd-mouse-x11-0f37353012979ea2deea1b2e3bf1dfd4cefb5c21.tar.bz2 drakx-kbd-mouse-x11-0f37353012979ea2deea1b2e3bf1dfd4cefb5c21.tar.xz drakx-kbd-mouse-x11-0f37353012979ea2deea1b2e3bf1dfd4cefb5c21.zip |
- wacom configuration: add "pad" InputDevice section
(backport from trunk)
Diffstat (limited to 'lib/Xconfig/xfree.pm')
-rw-r--r-- | lib/Xconfig/xfree.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index 9113976..85b770c 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -261,21 +261,20 @@ sub set_wacoms { $raw_X->remove_InputDevices('wacom'); my $layout = get_ServerLayout($raw_X)->{InputDevice} ||= []; - @$layout = grep { $_->{val} !~ /^"(Stylus|Eraser|Cursor)/ } @$layout; + @$layout = grep { $_->{val} !~ /^"(Stylus|Eraser|Cursor|Pad)/ } @$layout; @wacoms or return; - my %Modes = (Stylus => 'Absolute', Eraser => 'Absolute', Cursor => 'Relative'); - + my @Modes = ('Stylus', 'Eraser', 'Cursor', 'Pad'); + each_index { my $wacom = $_; - foreach (keys %Modes) { + foreach (@Modes) { my $identifier = $_ . ($::i + 1); my $h = { Identifier => { val => $identifier }, Driver => { val => 'wacom' }, Type => { val => lc $_, Option => 1 }, Device => { val => $wacom->{Device}, Option => 1 }, - Mode => { val => $Modes{$_}, Option => 1 }, if_($wacom->{USB}, USB => { Option => 1 }) }; $raw_X->add_Section('InputDevice', $h); |