summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-01 14:49:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-01 14:49:03 +0000
commit29b806152b054b13c04bfbc6b898afecd6fb8f78 (patch)
tree4697237de4241f1c577077b76c67dcba60ce2889 /lib/Xconfig
parent6833ec97ad02d6725683766ba81c2f5607165b14 (diff)
downloaddrakx-kbd-mouse-x11-29b806152b054b13c04bfbc6b898afecd6fb8f78.tar
drakx-kbd-mouse-x11-29b806152b054b13c04bfbc6b898afecd6fb8f78.tar.gz
drakx-kbd-mouse-x11-29b806152b054b13c04bfbc6b898afecd6fb8f78.tar.bz2
drakx-kbd-mouse-x11-29b806152b054b13c04bfbc6b898afecd6fb8f78.tar.xz
drakx-kbd-mouse-x11-29b806152b054b13c04bfbc6b898afecd6fb8f78.zip
- internal: add many options as having to be used only once, easing their use
and fixing setting them (eg #31942 where one can't click "Options" after setting EXA)
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/parse.pm2
-rw-r--r--lib/Xconfig/various.pm8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Xconfig/parse.pm b/lib/Xconfig/parse.pm
index 619c059..3ab9de2 100644
--- a/lib/Xconfig/parse.pm
+++ b/lib/Xconfig/parse.pm
@@ -143,7 +143,7 @@ my %kind_names = (
Mouse => [ qw(DeviceName Protocol Device AlwaysCore Emulate3Buttons Emulate3Timeout EmulateWheel EmulateWheelButton) ], # Subsection in XInput
Keyboard => [ qw(Protocol Driver XkbModel XkbLayout XkbDisable) ],
Monitor => [ qw(Identifier VendorName ModelName HorizSync VertRefresh) ],
- Device => [ qw(Identifier VendorName BoardName Chipset Driver VideoRam Screen BusID DPMS power_saver) ],
+ Device => [ qw(Identifier VendorName BoardName Chipset Driver VideoRam Screen BusID DPMS power_saver AccelMethod MonitorLayout TwinViewOrientation BIOSHotkeys RenderAccel SWCursor XaaNoOffscreenPixmaps) ],
Display => [ qw(Depth Modes Virtual) ], # Subsection in Device
Screen => [ qw(Identifier Driver Device Monitor DefaultDepth DefaultColorDepth) ],
InputDevice => [ qw(Identifier Driver Protocol Device Type Mode XkbModel XkbLayout XkbDisable Emulate3Buttons Emulate3Timeout EmulateWheel EmulateWheelButton) ],
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm
index 2bef5c9..ff823a1 100644
--- a/lib/Xconfig/various.pm
+++ b/lib/Xconfig/various.pm
@@ -70,15 +70,15 @@ sub various {
if_($::isStandalone, xdm => runlevel() == 5),
if_($b_read_existing,
Composite => ($raw_X->get_Section('Extensions') || {})->{Composite},
- if_(($card->{Options}{MonitorLayout} || [])->[0] eq '"NONE,CRT+LFP"' ||
- ($card->{Options}{TwinViewOrientation} || [])->[0] eq '"Clone"',
+ if_($card->{Options}{MonitorLayout} eq 'NONE,CRT+LFP' ||
+ $card->{Options}{TwinViewOrientation} eq 'Clone',
Clone => 1),
- if_(($card->{Options}{MonitorLayout} || [])->[0] eq '"LVDS,NONE"',
+ if_($card->{Options}{MonitorLayout} eq 'LVDS,NONE',
Clone => 0),
if_($card->{Options}{BIOSHotkeys},
BIOSHotkeys => 1),
if_($card->{Options}{AccelMethod},
- EXA => ($card->{Options}{AccelMethod} || [])->[0] eq '"EXA"'),
+ EXA => $card->{Options}{AccelMethod} eq 'EXA'),
if_($card->{Driver} eq 'nvidia',
RenderAccel => !$card->{Options}{RenderAccel},
),