Patch to compile on C89 compilers.

This commit is contained in:
Ryan C. Gordon 2016-01-04 16:36:42 -05:00
parent 6df5e1e535
commit 7678b1db88
1 changed files with 2 additions and 1 deletions

View File

@ -944,9 +944,10 @@ SetWindowActive(_THIS, SDL_Window * window)
Atom _NET_ACTIVE_WINDOW = data->videodata->_NET_ACTIVE_WINDOW; Atom _NET_ACTIVE_WINDOW = data->videodata->_NET_ACTIVE_WINDOW;
if (X11_IsWindowMapped(_this, window)) { if (X11_IsWindowMapped(_this, window)) {
XEvent e;
SDL_assert(data->user_time != 0); /* should be set by _some_ event by now. */ 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);*/ /*printf("SDL Window %p: sending _NET_ACTIVE_WINDOW with timestamp %lu\n", window, data->user_time);*/
XEvent e;
SDL_zero(e); SDL_zero(e);
e.xany.type = ClientMessage; e.xany.type = ClientMessage;