[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#954730: xterm: two press events sent for single press/release of mouse buttons 6 and 7



On Sun, Mar 22, 2020 at 11:38:00PM +0900, Bill Currie wrote:
> Package: xterm
> Version: 353-1
> Severity: normal
> 
> Dear Maintainer,
> 
> While developing a console based application using ncurses running under
> an exterm, I noticed I was getting double events for the side-scrolling
> buttons on my mouse (Elecom Huge: 12 buttons (including side-scrolling
> on the wheel)). Upon investigation, I found that while X itself is
> sending a press event followed immediately by a release event for
> buttons 6 and 7, I found that my program was recieving two press events
> for each press of either button 6 or 7

odd - in vttest (see attached log), I'm seeing only one event for each
press (using the rather clumsy Logitech wheel mouse).

> \x27[<0;14;24M      <- button 1 pressed
> \x27[<0;14;24m      <- button 1 preleased
> \x27[<66;14;24M     <- button 6 presssed ONCE
> \x27[<66;14;24M
> \x27[<67;14;24M     <- button 7 presssed ONCE
> \x27[<67;14;24M
> \x27[<65;14;24M     <- one click turning scroll one way
> \x27[<64;14;24M     <- one click turning scroll the other way way

With your program, I can see this - something to investigate...

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
Setup Terminal with test-defaults
Send: <27> [ 0 c 
Reply: <27> [ ? 6 4 ; 1 ; 2 ; 6 ; 9 ; 1 5 ; 1 6 ; 1 7 ; 1 8 ; 2 1 ; 2 2 ; 2 8 ; 2 9 c 
Send: <27> P $ q " p <27> \ 
Reply: <27> P 1 $ r 6 4 ; 1 " p <27> \ 
Max Operating Level: 4
Cur Operating Level: 4
set_level(4)
...set_level(4) in=7, out=7
Send: <27> [ ? 1 l 
Send: <27> [ ? 3 l 
Send: <27> [ ? 4 l 
Send: <27> [ ? 5 l 
Send: <27> [ ? 6 l 
Send: <27> [ ? 7 h 
Send: <27> [ ? 8 l 
Send: <27> [ ? 4 0 h 
Send: <27> [ ? 4 5 l 
Send: <27> [ r 
Send: <27> [ 0 m 
Text: Choose test type:
Text: 
Menu 11: Test non-VT100 (e.g., VT220, XTERM) terminals
Text: Choose test type:
Text: 
Menu 11.8: Test XTERM special features
Text: XTERM special features
Text: Choose test type:
Text: 
Menu 11.8.5: Mouse features
Text: XTERM mouse features
Text: Choose test type:
Text: 
Menu 11.8.5.6: Mouse Any-Event Tracking (XFree86 xterm)
Send: <27> [ 0 J 
Text: Mouse Any-Event Tracking (XFree86 xterm)
Text: Press 'q' to quit, 'r' to report modes, ' ' to clear.
Text: Mouse events will be marked with the button number.
Send: <27> [ ? 1 0 0 3 h 
Reply: <27> [ M c D * <27> [ M c D * 
Result: code 0x43 (10,36) button 7
Send: <27> [ 1 0 ; 3 6 H 
Reply: <27> [ M b D * <27> [ M b D * 
Result: code 0x42 (10,36) button 6
Send: <27> [ 1 0 ; 3 6 H 
Reply: <27> [ M c D * <27> [ M c D * 
Result: code 0x43 (10,36) button 7
Send: <27> [ 1 0 ; 3 6 H 
Reply: <27> [ M b D * <27> [ M b D * <27> [ M C E * <27> [ M C D * <27> [ M C E * 
Result: code 0x42 (10,36) button 6
Send: <27> [ 1 0 ; 3 6 H 
Reply: q 
Send: <27> [ ? 1 0 0 3 l 
Text: P u s h <32> < R E T U R N > 
Text: XTERM mouse features
Text: Choose test type:
Text: 
Text: XTERM special features
Text: Choose test type:
Text: 
Text: Choose test type:
Text: 
Text: Choose test type:
Text: 
Cleanup & exit
set_level(4)
...set_level(4) in=7, out=7
Send: <27> [ ? 1 l 
Send: <27> [ ? 3 l 
Send: <27> [ ? 5 l 
Send: <27> [ ? 6 l 
Send: <27> [ ? 7 h 
Send: <27> [ ? 8 h 
Send: <27> [ r 
Send: <27> [ 0 m 

Attachment: signature.asc
Description: PGP signature


Reply to: