summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-25 01:39:29 +0000
committerMatt Wilson <msw@redhat.com>2000-07-25 01:39:29 +0000
commit470e3adcc9e4145f12c7ddc98a47dd93e20c30d8 (patch)
treef1a60399d269248b17d229033542136fed2d2799 /xf86config.py
parent8214a454b563113a27cfe7f76a3195635be9431b (diff)
downloadanaconda-470e3adcc9e4145f12c7ddc98a47dd93e20c30d8.tar.gz
anaconda-470e3adcc9e4145f12c7ddc98a47dd93e20c30d8.tar.xz
anaconda-470e3adcc9e4145f12c7ddc98a47dd93e20c30d8.zip
fix for IMPS/2
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py26
1 files changed, 19 insertions, 7 deletions
diff --git a/xf86config.py b/xf86config.py
index 7091eee47..b1a1cdf01 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -888,11 +888,6 @@ class XF86Config:
FontPath "/usr/share/fonts/ISO8859-9/100dpi/"
"""
f = open ('/tmp/XF86Config.test', 'w')
- # 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.server == "XFree86":
config = self.Version4Config
@@ -998,10 +993,19 @@ Section "Screen"
"""
screens = screens + "EndSection\n"
+ # 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 test and self.mouse.info["XMOUSETYPE"] == "IMPS/2":
+ mouseProto = "PS/2"
+ else:
+ mouseProto = self.mouse.info['XMOUSETYPE']
info = { "acceleratedDevices" : devices,
"acceleratedScreens" : screens,
"devID" : self.devID,
- "mouseProto" : self.mouse.info['XMOUSETYPE'],
+ "mouseProto" : mouseProto,
"mouseDevice" : self.mouse.device,
"XkbRules" : self.keyRules,
"XkbModel" : self.keyModel,
@@ -1038,7 +1042,15 @@ Section "Screen"
screens = screens + """
EndSubsection
"""
- mouseProto = self.mouse.info['XMOUSETYPE']
+ # 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 test and self.mouse.info["XMOUSETYPE"] == "IMPS/2":
+ mouseProto = "PS/2"
+ else:
+ mouseProto = self.mouse.info['XMOUSETYPE']
if mouseProto == 'sun':
mouseProto = 'BusMouse'
data = { "mouseProto" : mouseProto,