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