Don't hardcode an 8 here.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 27 May 2014 15:47:25 -0400
changeset 893457fe4bf1b84b
parent 8933 063ef6957a12
child 8935 9d2f0236322b
Don't hardcode an 8 here.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue May 27 15:40:03 2014 -0400
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue May 27 15:47:25 2014 -0400
     1.3 @@ -40,6 +40,10 @@
     1.4  
     1.5  #include <stdio.h>
     1.6  
     1.7 +#ifndef _NET_WM_MOVERESIZE_MOVE
     1.8 +#define _NET_WM_MOVERESIZE_MOVE 8
     1.9 +#endif
    1.10 +
    1.11  typedef struct {
    1.12      unsigned char *data;
    1.13      int format, count;
    1.14 @@ -290,7 +294,7 @@
    1.15      evt.xclient.format = 32;
    1.16      evt.xclient.data.l[0] = window->x + point->x;
    1.17      evt.xclient.data.l[1] = window->y + point->y;
    1.18 -    evt.xclient.data.l[2] = 8; /* _NET_WM_MOVERESIZE_MOVE */  /* !!! FIXME: hardcoded 8? */
    1.19 +    evt.xclient.data.l[2] = _NET_WM_MOVERESIZE_MOVE;
    1.20      evt.xclient.data.l[3] = Button1;
    1.21      evt.xclient.data.l[4] = 0;
    1.22      X11_XSendEvent(display, DefaultRootWindow(display), False, SubstructureRedirectMask | SubstructureNotifyMask, &evt);