patch-xa_x11_c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. $OpenBSD: patch-xa_x11_c,v 1.1 2017/05/09 20:09:48 naddy Exp $
  2. Index: xa_x11.c
  3. --- xa_x11.c.orig
  4. +++ xa_x11.c
  5. @@ -1431,7 +1431,7 @@ void xanim_events()
  6. XChangeProperty(theDisp, mainW, window_atom, XA_STRING, 8,
  7. PropModeReplace, (unsigned char *)command, 1);
  8. if (xa_window_prepare_flag == xaFALSE)
  9. - xanim_expose(theWG, event, NULL, 0);
  10. + xanim_expose(theWG, &event, NULL, 0);
  11. while (1)
  12. {
  13. XtAppNextEvent(theContext, &event);
  14. @@ -1471,50 +1471,50 @@ void xanim_events()
  15. break;
  16. case ' ':
  17. if (xa_anim_status == XA_UNSTARTED)
  18. - xanim_expose(theWG, event, NULL, 0);
  19. - else xanim_toggle_action(theWG, event, NULL, 0);
  20. + xanim_expose(theWG, &event, NULL, 0);
  21. + else xanim_toggle_action(theWG, &event, NULL, 0);
  22. break;
  23. case ',':
  24. - xanim_step_prev_action(theWG, event, NULL, 0);
  25. + xanim_step_prev_action(theWG, &event, NULL, 0);
  26. break;
  27. case '.':
  28. - xanim_step_next_action(theWG, event, NULL, 0);
  29. + xanim_step_next_action(theWG, &event, NULL, 0);
  30. break;
  31. case 'm':
  32. - xanim_step_prev_int_action(theWG, event, NULL, 0);
  33. + xanim_step_prev_int_action(theWG, &event, NULL, 0);
  34. break;
  35. case '/':
  36. - xanim_step_next_int_action(theWG, event, NULL, 0);
  37. + xanim_step_next_int_action(theWG, &event, NULL, 0);
  38. break;
  39. case '-':
  40. - xanim_faster_action(theWG, event, NULL, 0);
  41. + xanim_faster_action(theWG, &event, NULL, 0);
  42. break;
  43. case '=':
  44. - xanim_slower_action(theWG, event, NULL, 0);
  45. + xanim_slower_action(theWG, &event, NULL, 0);
  46. break;
  47. case '0':
  48. - xanim_speed_reset_action(theWG, event, NULL, 0);
  49. + xanim_speed_reset_action(theWG, &event, NULL, 0);
  50. break;
  51. case '1':
  52. - xanim_dec_audio_5(theWG, event, NULL, 0);
  53. + xanim_dec_audio_5(theWG, &event, NULL, 0);
  54. break;
  55. case '2':
  56. - xanim_dec_audio_1(theWG, event, NULL, 0);
  57. + xanim_dec_audio_1(theWG, &event, NULL, 0);
  58. break;
  59. case '3':
  60. - xanim_inc_audio_1(theWG, event, NULL, 0);
  61. + xanim_inc_audio_1(theWG, &event, NULL, 0);
  62. break;
  63. case '4':
  64. - xanim_inc_audio_5(theWG, event, NULL, 0);
  65. + xanim_inc_audio_5(theWG, &event, NULL, 0);
  66. break;
  67. case 's':
  68. - xanim_mute_audio(theWG, event, NULL, 0);
  69. + xanim_mute_audio(theWG, &event, NULL, 0);
  70. break;
  71. case '8':
  72. - xanim_speaker_tog(theWG, event, NULL, 0);
  73. + xanim_speaker_tog(theWG, &event, NULL, 0);
  74. break;
  75. case '9':
  76. - xanim_headphone_tog(theWG, event, NULL, 0);
  77. + xanim_headphone_tog(theWG, &event, NULL, 0);
  78. break;
  79. case 'v':
  80. vaudiof->volume = atoi( &command[1] );
  81. @@ -1526,7 +1526,7 @@ void xanim_events()
  82. XA_AUDIO_SET_VOLUME(vaudiof->volume);
  83. break;
  84. case 'z':
  85. - xanim_realize_remote(theWG, event, NULL, 0);
  86. + xanim_realize_remote(theWG, &event, NULL, 0);
  87. break;
  88. case 'e':
  89. x11_expose_flag = xaTRUE;