diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-25 15:11:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-25 15:11:27 +0000 |
commit | da0efd11f88ac0611644ede0120d2572f9040246 (patch) | |
tree | 7553ce59e604d792b7c477a774e69456e9a9d5d9 /lib/Xconfig/xfree.pm | |
parent | 97ed258da08e51ab9d12f923952f875db5456680 (diff) | |
download | drakx-kbd-mouse-x11-da0efd11f88ac0611644ede0120d2572f9040246.tar drakx-kbd-mouse-x11-da0efd11f88ac0611644ede0120d2572f9040246.tar.gz drakx-kbd-mouse-x11-da0efd11f88ac0611644ede0120d2572f9040246.tar.bz2 drakx-kbd-mouse-x11-da0efd11f88ac0611644ede0120d2572f9040246.tar.xz drakx-kbd-mouse-x11-da0efd11f88ac0611644ede0120d2572f9040246.zip |
- XFdrake:
o set "PreferredMode" in Monitor section if the user changes the resolution
(we still do not use PreferredMode for the default resolution)
Diffstat (limited to 'lib/Xconfig/xfree.pm')
-rw-r--r-- | lib/Xconfig/xfree.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index f1f52c9..6b52ff5 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -345,7 +345,7 @@ sub set_synaptics { ################################################################################ # monitor ###################################################################### ################################################################################ -my @monitor_fields = qw(VendorName ModelName HorizSync VertRefresh); +my @monitor_fields = qw(VendorName ModelName HorizSync VertRefresh PreferredMode); sub get_monitors { my ($raw_X) = @_; my @raw_monitors = $raw_X->get_Sections('Monitor'); @@ -361,6 +361,7 @@ sub set_monitors { mapn { my ($raw_monitor, $monitor) = @_; raw_import_section($raw_monitor, $monitor, \@monitor_fields); + $raw_monitor->{PreferredMode}{Option} = 1 if $raw_monitor->{PreferredMode}; $raw_monitor->{ModeLine} = $monitor->{ModeLine} if $monitor->{ModeLine}; } \@raw_monitors, \@monitors; } |