Java Mailing List Archive

http://www.redhatconfig.com/

Home » Mandriva Cooker »

Re: [Cooker] Re: drakx-kbd-mouse-x11 patch proposal

pcpa

2008-06-05

Replies: Find Java Web Hosting

Author LoginPost 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

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.