Skip to content

Commit

Permalink
Get the parent of non-SDL-created windows, for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 16, 2017
1 parent 1b5614b commit 9085c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowswindow.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9085c7b

Please sign in to comment.