summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/xfree.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-10 08:13:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-10 08:13:36 +0000
commitb994ceb3fd2de833d7d14e9340038e9ed126272d (patch)
tree94770a3c7ac9cfcd110d81c069d771144a55f40a /lib/Xconfig/xfree.pm
parent709f287c0ac8e59b7fbc893319349399f09773c9 (diff)
downloaddrakx-kbd-mouse-x11-b994ceb3fd2de833d7d14e9340038e9ed126272d.tar
drakx-kbd-mouse-x11-b994ceb3fd2de833d7d14e9340038e9ed126272d.tar.gz
drakx-kbd-mouse-x11-b994ceb3fd2de833d7d14e9340038e9ed126272d.tar.bz2
drakx-kbd-mouse-x11-b994ceb3fd2de833d7d14e9340038e9ed126272d.tar.xz
drakx-kbd-mouse-x11-b994ceb3fd2de833d7d14e9340038e9ed126272d.zip
- XFdrake:
o never write a ModeLine when using fglrx driver (#30934)
Diffstat (limited to 'lib/Xconfig/xfree.pm')
-rw-r--r--lib/Xconfig/xfree.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm
index 1b47902..dfa4d5a 100644
--- a/lib/Xconfig/xfree.pm
+++ b/lib/Xconfig/xfree.pm
@@ -61,6 +61,7 @@ sub write {
#- keep it for old programs still using this name
symlink basename($file), "$::prefix/etc/X11/XF86Config";
}
+ no_ModeLine_on_fglrx($raw_X); #- HACK
set_Revision($raw_X);
Xconfig::parse::write_XF86Config($raw_X->{raw}, $file);
}
@@ -431,6 +432,14 @@ sub add_gtf_ModeLines {
1;
}
+#- HACK for fglrx (#30934)
+sub no_ModeLine_on_fglrx {
+ my ($raw_X) = @_;
+
+ if (get_Driver($raw_X) eq 'fglrx') {
+ delete $_->{ModeLine} foreach $raw_X->get_Sections('Monitor');
+ }
+}
################################################################################
# screens ######################################################################