summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/resolution_and_depth.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig/resolution_and_depth.pm')
-rw-r--r--lib/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm
index f688fce..09bc74b 100644
--- a/lib/Xconfig/resolution_and_depth.pm
+++ b/lib/Xconfig/resolution_and_depth.pm
@@ -224,7 +224,7 @@ sub configure_auto_install {
if ($old_X->{resolution_wanted} eq 'automatic') {
$default_resolution = { automatic => 1 };
} else {
- my $resolution_wanted = do {
+ my $resolution_wanted = $old_X->{resolution_wanted} && do {
my ($X, $Y) = split('x', $old_X->{resolution_wanted});
{ X => $X, Y => $Y, Depth => $old_X->{default_depth} };
};