summaryrefslogtreecommitdiffstats
path: root/xserver.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-25 23:29:31 +0000
committerErik Troan <ewt@redhat.com>1999-08-25 23:29:31 +0000
commitaabf3800ac1be00fd6acfe57780e4858d9eddb56 (patch)
tree29f91afa7c6d03ce1489bb173b0b3f2364a6f645 /xserver.py
parent4334b258c742b99f789d6619168fbc7d49d535ad (diff)
downloadanaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.tar.gz
anaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.tar.xz
anaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.zip
updated mouse support
Diffstat (limited to 'xserver.py')
-rw-r--r--xserver.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/xserver.py b/xserver.py
index 6f6d3a9c1..c821bb629 100644
--- a/xserver.py
+++ b/xserver.py
@@ -58,12 +58,14 @@ def startX():
raise XServerError, "Unable to find a mouse!"
device = None
- protocol = None
+ mouseProtocol = None
(mouseDev, driver, descr) = mice[0]
if mouseDev == 'psaux':
- protocol = "PS/2"
+ mouseProtocol = "PS/2"
+ mouseEmulate = 0
else:
- protocol = "Microsoft"
+ mouseProtocol = "Microsoft"
+ mouseEmulate = 1
cards = kudzu.probe (kudzu.CLASS_VIDEO,
kudzu.BUS_UNSPEC,
@@ -104,7 +106,7 @@ def startX():
f = open ('/tmp/XF86Config', 'w')
settings = { "mouseDev" : '/tmp/' + mouseDev ,
- "mouseProto" : protocol }
+ "mouseProto" : mouseProtocol }
f.write ("""
Section "Files"
@@ -222,3 +224,5 @@ EndSection
pid, status = os.waitpid(child, 0)
os.kill(server, 15)
sys.exit(status)
+
+ return ((mouseProtocol, mouseEmulate, mouseDev),)