This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

xvd_keys-unsteal.patch

By: a guest on Feb 16th, 2011  |  syntax: Diff  |  size: 7.74 KB  |  views: 175  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- xvd_keys.c.old      2010-11-02 09:10:38.000000000 -0400
  2. +++ xvd_keys.c  2011-02-15 13:52:45.000000000 -0500
  3. @@ -86,57 +86,10 @@
  4.      keybinder_init();
  5.  
  6.      keybinder_bind ("XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  7. -    keybinder_bind ("<Ctrl>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  8. -    keybinder_bind ("<Alt>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  9. -    keybinder_bind ("<Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  10. -    keybinder_bind ("<Shift>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  11. -    keybinder_bind ("<Ctrl><Shift>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  12. -    keybinder_bind ("<Ctrl><Alt>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  13. -    keybinder_bind ("<Ctrl><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  14. -    keybinder_bind ("<Alt><Shift>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  15. -    keybinder_bind ("<Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  16. -    keybinder_bind ("<Shift><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  17. -    keybinder_bind ("<Ctrl><Shift><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  18. -    keybinder_bind ("<Ctrl><Shift><Alt>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  19. -    keybinder_bind ("<Ctrl><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  20. -    keybinder_bind ("<Shift><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  21. -    keybinder_bind ("<Ctrl><Shift><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler, Inst);
  22. -    
  23. -    
  24. +
  25.      keybinder_bind ("XF86AudioLowerVolume", xvd_lower_handler, Inst);
  26. -    keybinder_bind ("<Ctrl>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  27. -    keybinder_bind ("<Alt>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  28. -    keybinder_bind ("<Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  29. -    keybinder_bind ("<Shift>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  30. -    keybinder_bind ("<Ctrl><Shift>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  31. -    keybinder_bind ("<Ctrl><Alt>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  32. -    keybinder_bind ("<Ctrl><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  33. -    keybinder_bind ("<Alt><Shift>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  34. -    keybinder_bind ("<Alt><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  35. -    keybinder_bind ("<Shift><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  36. -    keybinder_bind ("<Ctrl><Shift><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  37. -    keybinder_bind ("<Ctrl><Shift><Alt>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  38. -    keybinder_bind ("<Ctrl><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  39. -    keybinder_bind ("<Shift><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  40. -    keybinder_bind ("<Ctrl><Shift><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler, Inst);
  41. -    
  42. -    
  43. +
  44.      keybinder_bind ("XF86AudioMute", xvd_mute_handler, Inst);
  45. -    keybinder_bind ("<Ctrl>XF86AudioMute", xvd_mute_handler, Inst);
  46. -    keybinder_bind ("<Alt>XF86AudioMute", xvd_mute_handler, Inst);
  47. -    keybinder_bind ("<Super>XF86AudioMute", xvd_mute_handler, Inst);
  48. -    keybinder_bind ("<Shift>XF86AudioMute", xvd_mute_handler, Inst);
  49. -    keybinder_bind ("<Ctrl><Shift>XF86AudioMute", xvd_mute_handler, Inst);
  50. -    keybinder_bind ("<Ctrl><Alt>XF86AudioMute", xvd_mute_handler, Inst);
  51. -    keybinder_bind ("<Ctrl><Super>XF86AudioMute", xvd_mute_handler, Inst);
  52. -    keybinder_bind ("<Alt><Shift>XF86AudioMute", xvd_mute_handler, Inst);
  53. -    keybinder_bind ("<Alt><Super>XF86AudioMute", xvd_mute_handler, Inst);
  54. -    keybinder_bind ("<Shift><Super>XF86AudioMute", xvd_mute_handler, Inst);
  55. -    keybinder_bind ("<Ctrl><Shift><Super>XF86AudioMute", xvd_mute_handler, Inst);
  56. -    keybinder_bind ("<Ctrl><Shift><Alt>XF86AudioMute", xvd_mute_handler, Inst);
  57. -    keybinder_bind ("<Ctrl><Alt><Super>XF86AudioMute", xvd_mute_handler, Inst);
  58. -    keybinder_bind ("<Shift><Alt><Super>XF86AudioMute", xvd_mute_handler, Inst);
  59. -    keybinder_bind ("<Ctrl><Shift><Alt><Super>XF86AudioMute", xvd_mute_handler, Inst);
  60.  }
  61.  
  62.  void
  63. @@ -144,56 +97,8 @@
  64.  {
  65.  
  66.      keybinder_unbind ("XF86AudioRaiseVolume", xvd_raise_handler);
  67. -    keybinder_unbind ("<Ctrl>XF86AudioRaiseVolume", xvd_raise_handler);
  68. -    keybinder_unbind ("<Alt>XF86AudioRaiseVolume", xvd_raise_handler);
  69. -    keybinder_unbind ("<Super>XF86AudioRaiseVolume", xvd_raise_handler);
  70. -    keybinder_unbind ("<Shift>XF86AudioRaiseVolume", xvd_raise_handler);
  71. -    keybinder_unbind ("<Ctrl><Shift>XF86AudioRaiseVolume", xvd_raise_handler);
  72. -    keybinder_unbind ("<Ctrl><Alt>XF86AudioRaiseVolume", xvd_raise_handler);
  73. -    keybinder_unbind ("<Ctrl><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  74. -    keybinder_unbind ("<Alt><Shift>XF86AudioRaiseVolume", xvd_raise_handler);
  75. -    keybinder_unbind ("<Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  76. -    keybinder_unbind ("<Shift><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  77. -    keybinder_unbind ("<Ctrl><Shift><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  78. -    keybinder_unbind ("<Ctrl><Shift><Alt>XF86AudioRaiseVolume", xvd_raise_handler);
  79. -    keybinder_unbind ("<Ctrl><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  80. -    keybinder_unbind ("<Shift><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  81. -    keybinder_unbind ("<Ctrl><Shift><Alt><Super>XF86AudioRaiseVolume", xvd_raise_handler);
  82. -    
  83.      
  84.      keybinder_unbind ("XF86AudioLowerVolume", xvd_lower_handler);
  85. -    keybinder_unbind ("<Ctrl>XF86AudioLowerVolume", xvd_lower_handler);
  86. -    keybinder_unbind ("<Alt>XF86AudioLowerVolume", xvd_lower_handler);
  87. -    keybinder_unbind ("<Super>XF86AudioLowerVolume", xvd_lower_handler);
  88. -    keybinder_unbind ("<Shift>XF86AudioLowerVolume", xvd_lower_handler);
  89. -    keybinder_unbind ("<Ctrl><Shift>XF86AudioLowerVolume", xvd_lower_handler);
  90. -    keybinder_unbind ("<Ctrl><Alt>XF86AudioLowerVolume", xvd_lower_handler);
  91. -    keybinder_unbind ("<Ctrl><Super>XF86AudioLowerVolume", xvd_lower_handler);
  92. -    keybinder_unbind ("<Alt><Shift>XF86AudioLowerVolume", xvd_lower_handler);
  93. -    keybinder_unbind ("<Alt><Super>XF86AudioLowerVolume", xvd_lower_handler);
  94. -    keybinder_unbind ("<Shift><Super>XF86AudioLowerVolume", xvd_lower_handler);
  95. -    keybinder_unbind ("<Ctrl><Shift><Super>XF86AudioLowerVolume", xvd_lower_handler);
  96. -    keybinder_unbind ("<Ctrl><Shift><Alt>XF86AudioLowerVolume", xvd_lower_handler);
  97. -    keybinder_unbind ("<Ctrl><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler);
  98. -    keybinder_unbind ("<Shift><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler);
  99. -    keybinder_unbind ("<Ctrl><Shift><Alt><Super>XF86AudioLowerVolume", xvd_lower_handler);
  100. -    
  101.      
  102.      keybinder_unbind ("XF86AudioMute", xvd_mute_handler);
  103. -    keybinder_unbind ("<Ctrl>XF86AudioMute", xvd_mute_handler);
  104. -    keybinder_unbind ("<Alt>XF86AudioMute", xvd_mute_handler);
  105. -    keybinder_unbind ("<Super>XF86AudioMute", xvd_mute_handler);
  106. -    keybinder_unbind ("<Shift>XF86AudioMute", xvd_mute_handler);
  107. -    keybinder_unbind ("<Ctrl><Shift>XF86AudioMute", xvd_mute_handler);
  108. -    keybinder_unbind ("<Ctrl><Alt>XF86AudioMute", xvd_mute_handler);
  109. -    keybinder_unbind ("<Ctrl><Super>XF86AudioMute", xvd_mute_handler);
  110. -    keybinder_unbind ("<Alt><Shift>XF86AudioMute", xvd_mute_handler);
  111. -    keybinder_unbind ("<Alt><Super>XF86AudioMute", xvd_mute_handler);
  112. -    keybinder_unbind ("<Shift><Super>XF86AudioMute", xvd_mute_handler);
  113. -    keybinder_unbind ("<Ctrl><Shift><Super>XF86AudioMute", xvd_mute_handler);
  114. -    keybinder_unbind ("<Ctrl><Shift><Alt>XF86AudioMute", xvd_mute_handler);
  115. -    keybinder_unbind ("<Ctrl><Alt><Super>XF86AudioMute", xvd_mute_handler);
  116. -    keybinder_unbind ("<Shift><Alt><Super>XF86AudioMute", xvd_mute_handler);
  117. -    keybinder_unbind ("<Ctrl><Shift><Alt><Super>XF86AudioMute", xvd_mute_handler);
  118. -
  119.  }
clone this paste RAW Paste Data