From: Hugo V. <hvw...@ya...> - 2006-07-10 20:56:37
|
Hi, Since there is a lot of evdev knowledge out on this list, I have a question about something I cannot figure out. I have 2 monitors/Nvidia cards/kbds/mice. The mice are both A4Tech optical mice with 5 buttons and two wheels. They are defined in xorg.conf as: =========================================== Section "InputDevice" Identifier "Mouse0" Driver "evdev" Option "Device" "/dev/input/event3" # (cat /proc/bus/input/devices) Option "Name" "A4Tech USB Optical Mouse" Option "ZAxisMapping" "6 7 4 5" Option "Buttons" "12" EndSection Section "InputDevice" Identifier "Mouse1" Driver "evdev" Option "Device" "/dev/input/event4" # (cat /proc/bus/input/devices) Option "Name" "A4Tech USB Optical Mouse" Option "ZAxisMapping" "6 7 4 5" Option "Buttons" "12" EndSection =========================================== Here is the clincher: I log on as user "a" on one monitor and use xev to record the middle mouse button and I get: =========================================== ButtonPress event, serial 32, synthetic NO, window 0x3000001, root 0xa4, subw 0x3000002, time 1512493641, (44,29), root:(103,166), state 0x0, button 2, same_screen YES ... ButtonRelease event, serial 32, synthetic NO, window 0x3000001, root 0xa4, subw 0x3000002, time 1512493881, (44,29), root:(103,166), state 0x200, button 2, same_screen YES =========================================== So xev sees the middle mouse button for user "a". Then I logon on the same monitor as user "b" and repeat that. And I get: =========================================== LeaveNotify event, serial 32, synthetic NO, window 0x1e00001, root 0xa4, subw 0x1e00002, time 1512819589, (43,17), root:(102,154), mode NotifyGrab, detail NotifyVirtual, same_screen YES, focus YES, state 512 FocusOut event, serial 32, synthetic NO, window 0x1e00001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 32, synthetic NO, window 0x1e00001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 32, synthetic NO, window 0x0, keys: 2 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 EnterNotify event, serial 32, synthetic NO, window 0x1e00001, root 0xa4, subw 0x1e00002, time 1512821236, (43,17), root:(102,154), mode NotifyUngrab, detail NotifyVirtual, same_screen YES, focus YES, state 0 =========================================== So for a different user, but the same monitor and the same mouse, xev does *not* see the middle button. What gives? I cannot figure that out! Anybody? Thanks. Hugo __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |