summaryrefslogtreecommitdiffstats
path: root/mouse.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-27 05:43:09 +0000
committerMatt Wilson <msw@redhat.com>1999-08-27 05:43:09 +0000
commite18d7d6197414ac6f1d911f48c45ae3ab7d8d7d4 (patch)
treeb5959dcf27dabbfce885ea3247d486d2bd921073 /mouse.py
parentc7500ed7d38d3dfb2b90520a5ea544f4fbdaf514 (diff)
downloadanaconda-e18d7d6197414ac6f1d911f48c45ae3ab7d8d7d4.tar.gz
anaconda-e18d7d6197414ac6f1d911f48c45ae3ab7d8d7d4.tar.xz
anaconda-e18d7d6197414ac6f1d911f48c45ae3ab7d8d7d4.zip
fixup
Diffstat (limited to 'mouse.py')
-rw-r--r--mouse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mouse.py b/mouse.py
index 4a863e1be..f82d4eaff 100644
--- a/mouse.py
+++ b/mouse.py
@@ -127,11 +127,11 @@ class Mouse (SimpleConfigFile):
def setDevice(self, device):
self.device = device
- def set (self, mouse, emulateThreeButtons):
+ def set (self, mouse, emulateThreeButtons, thedev = None):
(gpm, x11, dev, em) = self.mice[mouse]
self.info["MOUSETYPE"] = gpm
self.info["XMOUSETYPE"] = x11
self.info["FULLNAME"] = mouse
self.emulate = emulateThreeButtons
- if (not self.device): self.device = dev
-
+ if not self.device and thedev: self.device = thedev
+ if not self.device: self.device = dev