mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Patched to compile on C89 compilers.
This commit is contained in:
parent
9c343681c4
commit
bea1854cac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user