Get the parent of non-SDL-created windows, for completeness
This commit is contained in:
parent
4a3e42f60b
commit
cccb905d15
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
|
||||||
SDL_stack_free(title);
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue