diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-02 14:24:52 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-02 14:24:52 +0000 |
commit | b21311d58b51eb6d0bdf4f53a373f053b75a2c5c (patch) | |
tree | e905e5cb12c3e78c35725e424dac28bd0db6b3be /xf86config.py | |
parent | bb51371dfa26185ac4f70310ee75830588286fee (diff) | |
download | anaconda-b21311d58b51eb6d0bdf4f53a373f053b75a2c5c.tar.gz anaconda-b21311d58b51eb6d0bdf4f53a373f053b75a2c5c.tar.xz anaconda-b21311d58b51eb6d0bdf4f53a373f053b75a2c5c.zip |
fix mouse test
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/xf86config.py b/xf86config.py index bd0421e32..96e2cbab1 100644 --- a/xf86config.py +++ b/xf86config.py @@ -15,7 +15,7 @@ class XF86Config: def __init__ (self, mouse = None): if mouse: (mouseProtocol, mouseEmulate, mouseDev) = mouse - self.mouse = { "mouseDev" : "/dev/mouse", + self.mouse = { "mouseDev" : "/dev/" + mouseDev, "mouseProto" : mouseProtocol } else: self.mouse = { "mouseDev" : "/dev/mouse", @@ -191,9 +191,29 @@ class XF86Config: def write (self, path): config = open (path, 'w') + config.write ( +""" +Section "Files" + RgbPath "/usr/X11R6/lib/X11/rgb" + FontPath "/usr/X11R6/lib/X11/fonts/misc/" + FontPath "/usr/X11R6/lib/X11/fonts/Type1/" + FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" + FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" + FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" +EndSection +""") config.write (self.preludeSection ()) config.write (self.inputSection ()) - config.write (self.mouseSection ()) + config.write ( +""" +Section "Pointer" + Protocol "%(mouseProto)s" + Device "%(mouseDev)s" + Emulate3Buttons + Emulate3Timeout 50 +EndSection +""" % settings) + config.write (self.monitorSection ()) config.write (self.deviceSection ()) config.write (self.screenSection ()) @@ -356,7 +376,7 @@ EndSection Section "Pointer" Protocol "%(mouseProto)s" - Device "%(mouseDev)s" + Device "/dev/mouse" # When using XQUEUE, comment out the above two lines, and uncomment # the following line. |