Skip to content

Commit

Permalink
Patched to compile with -Werror=declaration-after-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 25, 2014
1 parent b29740b commit 84cb232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -389,12 +389,12 @@ InitiateWindowMove(_THIS, const SDL_WindowData *data, const SDL_Point *point)
SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
SDL_Window* window = data->window;
Display *display = viddata->display;
XEvent evt;

/* !!! FIXME: we need to regrab this if necessary when the drag is done. */
X11_XUngrabPointer(display, 0L);
X11_XFlush(display);

XEvent evt;
evt.xclient.type = ClientMessage;
evt.xclient.window = data->xwindow;
evt.xclient.message_type = X11_XInternAtom(display, "_NET_WM_MOVERESIZE", True);
Expand All @@ -415,6 +415,7 @@ InitiateWindowResize(_THIS, const SDL_WindowData *data, const SDL_Point *point,
SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
SDL_Window* window = data->window;
Display *display = viddata->display;
XEvent evt;

if (direction < _NET_WM_MOVERESIZE_SIZE_TOPLEFT || direction > _NET_WM_MOVERESIZE_SIZE_LEFT)
return;
Expand All @@ -423,7 +424,6 @@ InitiateWindowResize(_THIS, const SDL_WindowData *data, const SDL_Point *point,
X11_XUngrabPointer(display, 0L);
X11_XFlush(display);

XEvent evt;
evt.xclient.type = ClientMessage;
evt.xclient.window = data->xwindow;
evt.xclient.message_type = X11_XInternAtom(display, "_NET_WM_MOVERESIZE", True);
Expand Down

0 comments on commit 84cb232

Please sign in to comment.