Author Login
Post Reply
Pixel wrote:
> Paulo Cesar Pereira de Andrade <pcpa@(protected):
>
>> Here is a proposed patch to correct the following XFdrake
>> problems:
>>
>> o Inverted logic about the Composite extension. It is enabled
>> by default in X Server 1.4 or newer.
>
> ok.
I think there is a bug:
+sub get_extension {
+ my ($raw_X, $extension) = @_;
+ my $raw = $raw_X->get_Section('Extensions');
+ $raw && $raw->{Composite} && $raw->{Composite}[0]{val};
+}
+sub set_extension {
+ my ($raw_X, $extension, $val) = @_;
+ my $raw = $raw_X->get_Section('Extensions') ||
$raw_X->add_Section('Extensions', {});
+ $raw->{Composite} = { 'Option' => 1, val => $val };
+}
Shouldn't it use $extension instead of hardcoded Composite?
Paulo