From 7678b1db884d4bf865568d71be332cb10e82a881 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 4 Jan 2016 16:36:42 -0500 Subject: [PATCH] Patch to compile on C89 compilers. --- src/video/x11/SDL_x11window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index b5753db4d..a7ae8c852 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -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;