summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/various.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig/various.pm')
-rw-r--r--lib/Xconfig/various.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm
index 33de577..5379d21 100644
--- a/lib/Xconfig/various.pm
+++ b/lib/Xconfig/various.pm
@@ -117,10 +117,8 @@ sub config {
$card->{Options}{AddARGBGLXVisuals} = undef;
}
} else {
- if (my $raw = $raw_X->get_Section('Extensions')) {
- delete $raw->{Composite};
- %$raw or $raw_X->remove_Section('Extensions');
- }
+ $raw_X->remove_extension('Composite');
+
if ($card->{Driver} eq 'nvidia') {
delete $card->{Options}{AddARGBGLXVisuals};
}