summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--NEWS1
-rw-r--r--lib/Xconfig/main.pm5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e5e6e56..cd6a3a9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- add display_driver_helper script (used by XFdrake, udev, drakx, dkms)
- add/remove nokmsboot boot option as needed
+- ask for reboot instead of X server restart, as it is commonly needed
Version 0.92 - 10 April 2011
- fix runned program in Keyboard.pm (#750)
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';
}
}