diff options
author | Erik Troan <ewt@redhat.com> | 1999-08-25 23:29:31 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-08-25 23:29:31 +0000 |
commit | aabf3800ac1be00fd6acfe57780e4858d9eddb56 (patch) | |
tree | 29f91afa7c6d03ce1489bb173b0b3f2364a6f645 /xserver.py | |
parent | 4334b258c742b99f789d6619168fbc7d49d535ad (diff) | |
download | anaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.tar.gz anaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.tar.xz anaconda-aabf3800ac1be00fd6acfe57780e4858d9eddb56.zip |
updated mouse support
Diffstat (limited to 'xserver.py')
-rw-r--r-- | xserver.py | 12 |
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),) |