Skip to content

Commit

Permalink
Don't hardcode an 8 here.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2014
1 parent 20ac4ba commit 7a4ddcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7a4ddcd

Please sign in to comment.