diff options
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" |