From 2c94319f843e60f52c8b3e5621cb038753a9e76d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 28 Sep 2007 16:21:57 +0000 Subject: - fix typo in 0.32: don't wrongly default to "automatic" resolution when creating xorg.conf (in non --auto) --- lib/Xconfig/xfree.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Xconfig') diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index ab9d3b5..df53ea6 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -188,7 +188,8 @@ sub get_resolutions { my $Screen = $o_Screen || $raw_X->get_default_screen or return {}; my $depth = val($Screen->{DefaultColorDepth} || $Screen->{DefaultDepth}); - my $Display = find { !$depth || val($_->{l}{Depth}) eq $depth } @{$Screen->{Display} || []} or return { automatic => 1 }; + my $Displays = $Screen->{Display} or return {}; + my $Display = find { !$depth || val($_->{l}{Depth}) eq $depth } @$Displays or return { automatic => 1 }; my $s = val($Display->{l}{Virtual} || $Display->{l}{Modes}); my @l; while ($s =~ /(\d+)(x|\s+)(\d+)/g) { -- cgit v1.2.1