x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Feb 2016 00:27:21 -0500
changeset 10072d2a1cd694861
parent 10071 f7e18e4f7c1d
child 10073 2455bf5d1866
x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Feb 15 21:49:09 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11events.c	Fri Feb 12 00:27:21 2016 -0500
     1.3 @@ -835,13 +835,13 @@
     1.4  
     1.5          /* Have we been resized or moved? */
     1.6      case ConfigureNotify:{
     1.7 +            long border_left = 0;
     1.8 +            long border_top = 0;
     1.9  #ifdef DEBUG_XEVENTS
    1.10              printf("window %p: ConfigureNotify! (position: %d,%d, size: %dx%d)\n", data,
    1.11                     xevent.xconfigure.x, xevent.xconfigure.y,
    1.12                     xevent.xconfigure.width, xevent.xconfigure.height);
    1.13  #endif
    1.14 -            long border_left = 0;
    1.15 -            long border_top = 0;
    1.16              if (data->xwindow) {
    1.17                  Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
    1.18                  Atom type;
    1.19 @@ -1229,11 +1229,11 @@
    1.20          break;
    1.21  
    1.22      case SelectionNotify: {
    1.23 +            Atom target = xevent.xselection.target;
    1.24  #ifdef DEBUG_XEVENTS
    1.25              printf("window %p: SelectionNotify (requestor = %ld, target = %ld)\n", data,
    1.26                  xevent.xselection.requestor, xevent.xselection.target);
    1.27  #endif
    1.28 -            Atom target = xevent.xselection.target;
    1.29              if (target == data->xdnd_req) {
    1.30                  /* read data */
    1.31                  SDL_x11Prop p;