Ticket #389 (closed usability: fixed)

Opened 22 months ago

Last modified 21 months ago

Button 2 position is reported wrong after fast user switching

Reported by: mthorn@… Owned by: jeremyhu@…
Priority: Important Milestone: 2.5.1
Component: xserver Version: 2.5.0 (xserver-1.7.6)
Keywords: Cc:

Description (last modified by jeremyhu@…) (diff)

Seen on a system running MacOS X 10.5.8. XQuartz 2.5.0 (xorg-server 1.7.6). Mouse is a Logitech bluetooth mouse with a middle scroll button that is reported as button 2 when pressed, and buttons 4 and 5 when scrolled in the two different directions.

  1. Login as user A
  2. Start an xterm
  3. Use fast user switching to log in as user B
  4. Start an xterm as user B

Running "xinput test pointer" shows that the position of button 2 is reported incorrectly when clicked, while the positions of buttons 1 and 3 are still reported correctly when clicked. xev shows that clicking button B outside of the black boundary will be reported as a LeaveNotify event or no event at all.

% xinput test pointer
button press   1 a[0]=666 a[1]=187 
button release 1 a[0]=666 a[1]=187 
button press   2 a[0]=625 a[1]=0 
button release 2 a[0]=625 a[1]=0 
button press   3 a[0]=666 a[1]=187 
button release 3 a[0]=666 a[1]=187 
button press   1 a[0]=666 a[1]=187 
button release 1 a[0]=666 a[1]=187 
button press   2 a[0]=625 a[1]=0 
button release 2 a[0]=625 a[1]=0 
button press   3 a[0]=666 a[1]=187 
button release 3 a[0]=666 a[1]=187 
button press   1 a[0]=666 a[1]=187 
button release 1 a[0]=666 a[1]=187 
button press   2 a[0]=625 a[1]=0 
button release 2 a[0]=625 a[1]=0 
button press   3 a[0]=666 a[1]=187 
button release 3 a[0]=666 a[1]=187 
button press   1 a[0]=666 a[1]=187 
motion a[0]=670 a[1]=188 
motion a[0]=671 a[1]=188 
button release 1 a[0]=671 a[1]=188 
button press   2 a[0]=635 a[1]=0 
button release 2 a[0]=635 a[1]=0 
button press   3 a[0]=671 a[1]=188 
button release 3 a[0]=671 a[1]=188 

Attachments

xorg-server-middle_click.patch Download (1.2 KB) - added by otte@… 21 months ago.

Change History

follow-up: ↓ 2   Changed 22 months ago by mthorn@…

Sorry "xev shows that clicking button B" should read "xev shows that clicking button 2"

Changed 21 months ago by otte@…

in reply to: ↑ 1   Changed 21 months ago by otte@…

Replying to mthorn@…:

I mentioned this too in an email I sent to the mailing list in December ( http://lists.macosforge.org/pipermail/xquartz-dev/2009-December/002705.html), but never got around to adding a bug report. I am getting this problem with snow leopard.

Only the middle click is affected, not the left and right clicks. As far as I can tell, the deltaXY values for middle clicks become erroneous during fast user switching. I get around this problem when compiling the macports server by adding an exception for middle clicks in X11Application.m, as was done for tablets. Please see the attached file xorg-server-middle_click.patch.

Since I use the macports X11 servers with this patch, I don't know if the latest operating system update has fixed this problem yet.

  Changed 21 months ago by jeremyhu@…

  • milestone set to 2.5.1

  Changed 21 months ago by jeremyhu@…

  • description modified (diff)

  Changed 21 months ago by jeremyhu@…

I tested this on quake2 (which was an obvious example that required the other code path), and it seems fine.

  Changed 21 months ago by jeremyhu@…

  • status changed from new to assigned

  Changed 21 months ago by jeremyhu@…

  • status changed from assigned to closed
  • resolution set to fixed

This is in my git tree and will be in 2.5.1_rc1

Note: See TracTickets for help on using tickets.