The mac_hid module provides a virtual device to emulate right and/or middle mouse button clicks on certain key presses. This emulation however only hooks into keyboard.c, but not into evdev.c. Consumers that listen to all evdev devices (such as the X server) thus receive both the emulated mouse button event and the original key event. They do not know that these events are associated. These patches provide input handlers with an additional "filter" callback. This filter function is invoked before the event is passed to the handlers and can opt to discard the event. The mac_hid module registers such a filter function and re-routes the event as mouse click through the virtual device. This is a first stab in the dark at the attempt to fix this issue. Comments are much appreciated. Cheers, Peter -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html