Re: Bug|RFE: Manually set mouse button count

2004-10-02 Thread Alexander Gottwald
Xuân Baldauf wrote:

 If one could manually specifiy the number of available mouse buttons
 (e.g. by command-line), this problem could be solved. Additionally, a
 related problem could be solved, too: Even if XWin correctly detects at
 startup time that there are only 2 mouse buttons, users might plug in a
 mouse with more buttons later on.

This was a bug. The code for detecting the mouse button count was added
lately to support mice with  3 buttons. But mice with  3 buttons were
not handled correctly.

I've changed this:
XWin always assumes the mouse has 3 buttons (Left, Middle, Right) and
the scroll wheel. This sums up to 5 mouse buttons for XWin (4 and 5 are
wheel up and wheel down). Any additional mouse button is added as button
6, 7, 8 and so on.

I'll make a release next week

bye
ago
NP: Final Selection - at the gates of utopia (instrumental)
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Bug|RFE: Manually set mouse button count

2004-10-01 Thread Xuân Baldauf
Hello,
At least if XWin is run on notebook, there might be the problem that 
cygwin incorrectly detects the number of available mouse buttons. This 
may be the case especially if a 3-button-wheel mouse is attached to a 
PS/2-port of that notebook, because the internal PS/2-port emulator 
intermixes external mouse events with touchpad events. In this case, 
cygwin detects only 2 buttons (I assume the two touchpad buttons), while 
it should detect 3 buttons.

This is usually not a real problem, because cygwin seems to add (by 
default) 2 buttons (for wheel-up and wheel-down), resultin in a total of 
4 buttons. But if the user wants to use the wheel of the attached wheel 
mouse, the wheel-up-events are properly scheduled to the X clients, but 
the wheel-down-events are not.

If one could manually specifiy the number of available mouse buttons 
(e.g. by command-line), this problem could be solved. Additionally, a 
related problem could be solved, too: Even if XWin correctly detects at 
startup time that there are only 2 mouse buttons, users might plug in a 
mouse with more buttons later on.

Cheers,
Xuân.