Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Get the parent of non-SDL-created windows, for completeness
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
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; |
|
|
} |
|
|
|
|
|