patch-xgraphics_c 751 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. $OpenBSD: patch-xgraphics_c,v 1.1 2017/05/25 18:09:55 espie Exp $
  2. Index: xgraphics.c
  3. --- xgraphics.c.orig
  4. +++ xgraphics.c
  5. @@ -265,7 +265,7 @@ void placate_x()
  6. XConfigureEvent *xce;
  7. XMotionEvent *xme;
  8. XButtonEvent *xbe;
  9. - checkX;
  10. + checkX();
  11. while(XCheckWindowEvent(dpy, win, EVENT_MASK, (XEvent *)&event))
  12. @@ -307,14 +307,14 @@ void check_X11_stop() {
  13. if (--count == 0) {
  14. count = 300;
  15. - checkX;
  16. + checkX();
  17. placate_x();
  18. }
  19. }
  20. int get_button()
  21. {
  22. - checkX;
  23. + checkX(0);
  24. placate_x();
  25. @@ -323,7 +323,7 @@ int get_button()
  26. int get_mouse_x()
  27. {
  28. - checkX;
  29. + checkX(0);
  30. placate_x();
  31. @@ -333,7 +333,7 @@ int get_mouse_x()
  32. int get_mouse_y()
  33. {
  34. - checkX;
  35. + checkX(0);
  36. placate_x();