Patched to compile on C89 compilers.
--- a/src/video/wayland/SDL_waylandevents.c Wed May 27 18:54:06 2015 -0400
+++ b/src/video/wayland/SDL_waylandevents.c Wed May 27 19:00:56 2015 -0400
@@ -293,13 +293,14 @@
struct wl_array *keys)
{
struct SDL_WaylandInput *input = data;
+ SDL_WindowData *window;
if (!surface) {
/* enter event for a window we've just destroyed */
return;
}
- SDL_WindowData *window = wl_surface_get_user_data(surface);
+ window = wl_surface_get_user_data(surface);
input->keyboard_focus = window;
window->keyboard_device = input;