foxten
August 17th, 2010, 02:52 PM
Found out that the problem is in X.
This is the log from 'xev' doing the mouse clicks:
-- three clicks with button 1 --
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740090, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740218, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740330, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740410, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740530, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14740610, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
-- three clicks with button 3 --
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14741954, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14742074, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14742138, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14742258, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14742442, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14742538, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
-- clicking with both mouse buttons, button 1 first then button 3 --
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14743722, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14744370, (110,36), root:(1210,410),
state 0x110, button 3, same_screen YES
== Here, release both mouse buttons
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14745754, (110,36), root:(1210,410),
state 0x510, button 1, same_screen YES
== Clicking with button 1 three times
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14746746, (110,36), root:(1210,410),
state 0x410, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14746874, (110,36), root:(1210,410),
state 0x510, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14747074, (110,36), root:(1210,410),
state 0x410, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14747202, (110,36), root:(1210,410),
state 0x510, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14747362, (110,36), root:(1210,410),
state 0x410, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14747506, (110,36), root:(1210,410),
state 0x510, button 1, same_screen YES
== Clicking with button 3 three times
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14748474, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14751474, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14751578, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14751658, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14751794, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
== Again, clicking with button 1 three times
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752402, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752482, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752610, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752682, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752786, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14752874, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
-- clicking with both mouse buttons again, this time first button 3, then 1 --
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14753490, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14753986, (110,36), root:(1210,410),
state 0x410, button 1, same_screen YES
== Release both buttons
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14754690, (110,36), root:(1210,410),
state 0x510, button 3, same_screen YES
== Click button 1 two times
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14756354, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14756730, (110,36), root:(1210,410),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14756866, (110,36), root:(1210,410),
state 0x110, button 1, same_screen YES
== Clicking button 3 two times
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14757378, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14757458, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14758410, (110,36), root:(1210,410),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 36, synthetic NO, window 0x4a00001,
root 0x108, subw 0x0, time 14758482, (110,36), root:(1210,410),
state 0x410, button 3, same_screen YES
From this log it can be seen that when both mouse buttons are clicked, the ButtonPress event is registered for both buttons, but when releasing buttons, only one ButtonRelease event is registered, this for the first clicked button.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.