summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2011-04-17 14:02:01 +0000
committerAnssi Hannula <anssi@mageia.org>2011-04-17 14:02:01 +0000
commit4fe182623c868b779e30337265f9644493e87294 (patch)
tree2b326ed030ed6dc06e12298e74c7ebf6816e4b1c /lib/Xconfig
parent6f7b710c51427d1bbe2031376c65fdab1a2f5551 (diff)
downloaddrakx-kbd-mouse-x11-4fe182623c868b779e30337265f9644493e87294.tar
drakx-kbd-mouse-x11-4fe182623c868b779e30337265f9644493e87294.tar.gz
drakx-kbd-mouse-x11-4fe182623c868b779e30337265f9644493e87294.tar.bz2
drakx-kbd-mouse-x11-4fe182623c868b779e30337265f9644493e87294.tar.xz
drakx-kbd-mouse-x11-4fe182623c868b779e30337265f9644493e87294.zip
Ask for reboot instead of X restart, as it is commonly needed.
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/main.pm5
1 files changed, 4 insertions, 1 deletions
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';
}
}