Skip to content

Commit

Permalink
Patched to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2015
1 parent 9c34368 commit bea1854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/wayland/SDL_waylandevents.c
Expand Up @@ -293,13 +293,14 @@ keyboard_handle_enter(void *data, struct wl_keyboard *keyboard,
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;
Expand Down

0 comments on commit bea1854

Please sign in to comment.