From 7a4ddcd8c63f0fd6a4b9caec3b59818bbae411e2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 27 May 2014 15:47:25 -0400 Subject: [PATCH] Don't hardcode an 8 here. --- src/video/x11/SDL_x11events.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index fc96d1b268b68..3d0de138befdd 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -40,6 +40,10 @@ #include +#ifndef _NET_WM_MOVERESIZE_MOVE +#define _NET_WM_MOVERESIZE_MOVE 8 +#endif + typedef struct { unsigned char *data; int format, count; @@ -290,7 +294,7 @@ InitiateWindowMove(_THIS, const SDL_WindowData *data, const SDL_Point *point) 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);