From 4fe182623c868b779e30337265f9644493e87294 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 17 Apr 2011 14:02:01 +0000 Subject: Ask for reboot instead of X restart, as it is commonly needed. --- lib/Xconfig/main.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Xconfig/main.pm b/lib/Xconfig/main.pm index 694c4f4..1ba965d 100644 --- a/lib/Xconfig/main.pm +++ b/lib/Xconfig/main.pm @@ -215,7 +215,10 @@ sub write { } elsif (my $resolution = $only_resolution && eval { $raw_X->get_resolution }) { 'need_xrandr' . sprintf(' --size %dx%d', @$resolution{'X', 'Y'}); } else { - 'need_restart'; + # Always ask for reboot as the driver could've changed. + # TODO: Do 'need_restart' instead when no reboot needed, like no driver + # change. + 'need_reboot'; } } -- cgit v1.2.1