From 2140009211c17ce51ebca837b78e6e5d343e646c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 19 Aug 2008 15:45:04 +0000 Subject: - XFdrake: o [bugfix] fix clicking on "Options" when Composite is disabled (regression introduced in 0.58) --- lib/Xconfig/parse.pm | 1 + lib/Xconfig/xfree.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Xconfig') diff --git a/lib/Xconfig/parse.pm b/lib/Xconfig/parse.pm index 3ab9de2..283065f 100644 --- a/lib/Xconfig/parse.pm +++ b/lib/Xconfig/parse.pm @@ -146,6 +146,7 @@ my %kind_names = ( 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) ], + Extensions => [ qw(Composite) ], InputDevice => [ qw(Identifier Driver Protocol Device Type Mode XkbModel XkbLayout XkbDisable Emulate3Buttons Emulate3Timeout EmulateWheel EmulateWheelButton) ], WacomCursor => [ qw(Port) ], #-\ WacomStylus => [ qw(Port) ], #--> Port must be first diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index c50f8d6..46c7ac0 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -529,7 +529,7 @@ sub remove_extension { sub get_extension { my ($raw_X, $extension) = @_; my $raw = $raw_X->get_Section('Extensions'); - $raw && $raw->{$extension} && $raw->{$extension}[0]{val}; + $raw && $raw->{$extension} && $raw->{$extension}{val}; } sub set_extension { my ($raw_X, $extension, $val) = @_; -- cgit v1.2.1