build-fixes.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. diff -up src/velox-0.0.3/modules/alsa.c.orig src/velox-0.0.3/modules/alsa.c
  2. --- src/velox-0.0.3/modules/alsa.c.orig 2014-03-27 03:59:31.000000000 -0600
  3. +++ src/velox-0.0.3/modules/alsa.c 2014-03-27 04:00:01.000000000 -0600
  4. @@ -20,8 +20,8 @@
  5. #include <stdio.h>
  6. #include <assert.h>
  7. #include <yaml.h>
  8. -#include <asoundlib.h>
  9. -#include <mixer.h>
  10. +#include <alsa/asoundlib.h>
  11. +#include <alsa/mixer.h>
  12. #include <velox/velox.h>
  13. #include <velox/module.h>
  14. diff -up src/velox-0.0.3/velox/event.c.orig src/velox-0.0.3/velox/event.c
  15. --- src/velox-0.0.3/velox/event.c.orig 2014-03-27 03:57:53.000000000 -0600
  16. +++ src/velox-0.0.3/velox/event.c 2014-03-27 03:58:00.000000000 -0600
  17. @@ -272,7 +272,7 @@ static void unmap_notify(xcb_unmap_notif
  18. xcb_grab_server(c);
  19. - property_values[0] = XCB_WM_STATE_WITHDRAWN;
  20. + property_values[0] = XCB_ICCCM_WM_STATE_WITHDRAWN;
  21. property_values[1] = 0;
  22. xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->window_id, WM_STATE, WM_STATE, 32, 2, property_values);
  23. diff -up src/velox-0.0.3/velox/velox.c.orig src/velox-0.0.3/velox/velox.c
  24. --- src/velox-0.0.3/velox/velox.c.orig 2014-03-27 03:56:23.000000000 -0600
  25. +++ src/velox-0.0.3/velox/velox.c 2014-03-27 03:57:38.000000000 -0600
  26. @@ -314,7 +314,7 @@ void show_window(xcb_window_t window_id)
  27. DEBUG_ENTER
  28. - property_values[0] = XCB_WM_STATE_NORMAL;
  29. + property_values[0] = XCB_ICCCM_WM_STATE_NORMAL;
  30. property_values[1] = 0;
  31. xcb_change_property(c, XCB_PROP_MODE_REPLACE, window_id, WM_STATE, WM_STATE, 32, 2, property_values);
  32. @@ -327,7 +327,7 @@ void hide_window(xcb_window_t window_id)
  33. DEBUG_ENTER
  34. - property_values[0] = XCB_WM_STATE_WITHDRAWN; // FIXME: Maybe this should be iconic?
  35. + property_values[0] = XCB_ICCCM_WM_STATE_WITHDRAWN; // FIXME: Maybe this should be iconic?
  36. property_values[1] = 0;
  37. xcb_change_property(c, XCB_PROP_MODE_REPLACE, window_id, WM_STATE, WM_STATE, 32, 2, property_values);
  38. @@ -766,7 +766,7 @@ void manage(xcb_window_t window_id)
  39. xcb_map_window(c, window->window_id);
  40. - property_values[0] = XCB_WM_STATE_NORMAL;
  41. + property_values[0] = XCB_ICCCM_WM_STATE_NORMAL;
  42. property_values[1] = 0;
  43. xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->window_id, WM_STATE, WM_STATE, 32, 2, property_values);
  44. @@ -885,7 +885,7 @@ void manage_existing_windows()
  45. continue;
  46. }
  47. - if (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE || ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_WM_STATE_ICONIC)
  48. + if (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE || ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_ICCCM_WM_STATE_ICONIC)
  49. {
  50. manage(children[child]);
  51. }
  52. @@ -894,7 +894,7 @@ void manage_existing_windows()
  53. {
  54. if (*((xcb_window_t *) xcb_get_property_value(property_replies[child])) &&
  55. (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE ||
  56. - ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_WM_STATE_ICONIC))
  57. + ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_ICCCM_WM_STATE_ICONIC))
  58. {
  59. manage(children[child]);
  60. }