Guest User

Untitled

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