Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- xserver-xorg-input-evdev-2.6.0.orig/src/evdev.c
- +++ xserver-xorg-input-evdev-2.6.0/src/evdev.c
- @@ -300,6 +300,15 @@
- int code = ev->code + MIN_KEYCODE;
- EventQueuePtr pQueue;
- + /* fix events for volume keys */
- + if(ev->code == KEY_VOLUMEDOWN || ev->code == KEY_VOLUMEUP) //MODIFY THIS LINE
- + {
- + //post a keydown and then a keyup, as media keys have no automatic key-up
- + xf86PostKeyboardEvent(pInfo->dev, code, 1);
- + xf86PostKeyboardEvent(pInfo->dev, code, 0);
- + return;
- + }
- +
- /* Filter all repeated events from device.
- We'll do softrepeat in the server, but only since 1.6 */
- if (value == 2
Advertisement
Add Comment
Please, Sign In to add comment