diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/xfree.pm | 9 |
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 ###################################################################### |