Quote Originally Posted by ricardo View Post
Really? One press event when you press 2 buttons??? Sounds strange, doesnt it?
No, actually I was wrong.

ButtonPress event, serial 31, synthetic NO, window 0x5800001,
root 0x13c, subw 0x5800002, time 36532044, (48,35), root:(735,101),
state 0x0, button 1, same_screen YES


EnterNotify event, serial 31, synthetic NO, window 0x5800001,
root 0x13c, subw 0x0, time 36532044, (48,35), root:(735,101),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus YES, state 256

KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys: 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

ButtonPress event, serial 31, synthetic NO, window 0x5800001,
root 0x13c, subw 0x5800002, time 36532068, (48,35), root:(735,101),
state 0x100, button 3, same_screen YES


ButtonRelease event, serial 31, synthetic NO, window 0x5800001,
root 0x13c, subw 0x5800002, time 36537716, (48,35), root:(735,101),
state 0x500, button 3, same_screen YES

ButtonRelease event, serial 31, synthetic NO, window 0x5800001,
root 0x13c, subw 0x5800002, time 36537740, (48,35), root:(735,101),
state 0x100, button 1, same_screen YES
You can see two ButtonPush events reported, once for the left (1) and then for the right (3) mouse button.