mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system"
This reverts commit 5948ea997f
.
This isn't needed, the proper focus logic is in SDL_ShowWindow()
This commit is contained in:
@@ -2131,15 +2131,9 @@ SDL_Window *SDL_CreateWindowWithProperties(SDL_PropertiesID props)
|
||||
parent->first_child = window;
|
||||
}
|
||||
|
||||
if (_this->CreateSDLWindow) {
|
||||
if (_this->CreateSDLWindow(_this, window, props) < 0) {
|
||||
SDL_DestroyWindow(window);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
/* No windowing system, make sure the new window has focus */
|
||||
SDL_SetMouseFocus(window);
|
||||
SDL_SetKeyboardFocus(window);
|
||||
if (_this->CreateSDLWindow && _this->CreateSDLWindow(_this, window, props) < 0) {
|
||||
SDL_DestroyWindow(window);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Clear minimized if not on windows, only windows handles it at create rather than FinishWindowCreation,
|
||||
|
Reference in New Issue
Block a user