diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-02 21:02:23 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-02 21:02:23 +0000 |
commit | de40208f570d623d299a1cd81c3aad0197b5e3ef (patch) | |
tree | 487e1e683c5da59b1fdbd9e4977db87fdcaaf9bd /xf86config.py | |
parent | 135be874492a9cbba738cfaccca0db5d05864930 (diff) | |
download | anaconda-de40208f570d623d299a1cd81c3aad0197b5e3ef.tar.gz anaconda-de40208f570d623d299a1cd81c3aad0197b5e3ef.tar.xz anaconda-de40208f570d623d299a1cd81c3aad0197b5e3ef.zip |
set the mouse for X configuration properly
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xf86config.py b/xf86config.py index df10fbeec..7d3ad7786 100644 --- a/xf86config.py +++ b/xf86config.py @@ -51,13 +51,7 @@ class XF86Config: self.keyOptions = options def setMouse(self, mouse): - if mouse: - (mouseProtocol, mouseEmulate, mouseDev) = mouse - self.mouse = { "mouseDev" : "/dev/" + mouseDev, - "mouseProto" : mouseProtocol } - else: - self.mouse = { "mouseDev" : "/dev/mouse", - "mouseProto" : "PS/2" } + self.mouse = mouse def areaCompare (self, first, second): (sx1, sy1) = string.split (first, 'x') @@ -396,7 +390,7 @@ EndSection # ********************************************************************** Section "Pointer" - Protocol "%(mouseProto)s" + Protocol "%(XMOUSETYPE)s" Device "/dev/mouse" # When using XQUEUE, comment out the above two lines, and uncomment @@ -416,7 +410,7 @@ Section "Pointer" # ChordMiddle EndSection -""" % self.mouse +""" % self.mouse.info def keyboardSection (self): autorepeat = "AutoRepeat 500 5" |