forked from Green-Sky/tomato
fix hidden window state on android
This commit is contained in:
parent
1b72de01fa
commit
8cb8470c3a
@ -246,7 +246,7 @@ bool MainScreen::handleEvent(SDL_Event& e) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
e.type == SDL_EVENT_WINDOW_SHOWN ||
|
e.type == SDL_EVENT_WINDOW_SHOWN ||
|
||||||
//e.type == SDL_EVENT_WINDOW_RESTORED || // triggers on hide
|
e.type == SDL_EVENT_WINDOW_RESTORED || // required for android
|
||||||
e.type == SDL_EVENT_WINDOW_EXPOSED
|
e.type == SDL_EVENT_WINDOW_EXPOSED
|
||||||
) {
|
) {
|
||||||
auto* window = SDL_GetWindowFromID(e.window.windowID);
|
auto* window = SDL_GetWindowFromID(e.window.windowID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user