From d18e21259bf0f805ef42f7edf9964ff6d7b7e552 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 12 Jan 2017 20:03:12 +0100 Subject: [PATCH] sdl2: Fix build problem Signed-off-by: Stefan Weil --- ui/sdl2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 9a79b17b92..91fb111aa5 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -817,9 +817,15 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) sdl2_console[i].dcl.con = con; register_displaychangelistener(&sdl2_console[i].dcl); +#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_X11) if (SDL_GetWindowWMInfo(sdl2_console[i].real_window, &info)) { +#if defined(SDL_VIDEO_DRIVER_WINDOWS) + qemu_console_set_window_id(con, (uintptr_t)info.info.win.window); +#elif defined(SDL_VIDEO_DRIVER_X11) qemu_console_set_window_id(con, info.info.x11.window); +#endif } +#endif } /* Load a 32x32x4 image. White pixels are transparent. */ -- 2.11.4.GIT