summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-03-04 18:12:16 +0000
committerMatt Wilson <msw@redhat.com>2000-03-04 18:12:16 +0000
commit9340d81e014124bda71b0e0e1d982aed71a7a25d (patch)
treefa92ebbace94c726aed84357a712f52749a59a2b /xf86config.py
parent71a9c7247861070c60c29046b004738dba9071df (diff)
downloadanaconda-9340d81e014124bda71b0e0e1d982aed71a7a25d.tar.gz
anaconda-9340d81e014124bda71b0e0e1d982aed71a7a25d.tar.xz
anaconda-9340d81e014124bda71b0e0e1d982aed71a7a25d.zip
fix for imps/2
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/xf86config.py b/xf86config.py
index c7e616e3c..19de4167a 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -326,6 +326,15 @@ Section "ServerFlags"
EndSection
""")
config.write (self.keyboardSection ())
+ # XXX if we're going to be using IMPS/2 on
+ # reboot, but we're using PS/2 now, we'll need
+ # to temporarily use PS/2 so we don't frob the
+ # intellimouse into IMPS/2 mode (if we did, we'll
+ # loose the mouse cursor in the install)
+ if self.mouse.info["XMOUSETYPE"] == "IMPS/2":
+ mouseproto = "PS/2"
+ else:
+ mouseproto = self.mouse.info["XMOUSETYPE"]
config.write (
"""
Section "Pointer"
@@ -334,7 +343,7 @@ Section "Pointer"
Emulate3Buttons
Emulate3Timeout 50
EndSection
-""" % (self.mouse.info["XMOUSETYPE"], self.mouse.device))
+""" % (mouseproto, self.mouse.device))
config.write (self.monitorSection ())
config.write (self.deviceSection ())
config.write (self.screenSection ())