From 9085c7b3112ff81d6c7c0d577940a21a9e02ef5f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 16 Jun 2017 11:14:08 -0700 Subject: [PATCH] Get the parent of non-SDL-created windows, for completeness --- src/video/windows/SDL_windowswindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 5cf25b0be..b80a5150d 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -366,7 +366,7 @@ WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) SDL_stack_free(title); } - if (SetupWindowData(_this, window, hwnd, NULL, SDL_FALSE) < 0) { + if (SetupWindowData(_this, window, hwnd, GetParent(hwnd), SDL_FALSE) < 0) { return -1; }