Skip to content

Commit

Permalink
Patch to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 4, 2016
1 parent 6df5e1e commit 7678b1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -944,9 +944,10 @@ SetWindowActive(_THIS, SDL_Window * window)
Atom _NET_ACTIVE_WINDOW = data->videodata->_NET_ACTIVE_WINDOW;

if (X11_IsWindowMapped(_this, window)) {
XEvent e;

SDL_assert(data->user_time != 0); /* should be set by _some_ event by now. */
/*printf("SDL Window %p: sending _NET_ACTIVE_WINDOW with timestamp %lu\n", window, data->user_time);*/
XEvent e;

SDL_zero(e);
e.xany.type = ClientMessage;
Expand Down

0 comments on commit 7678b1d

Please sign in to comment.