From 2982a0a5336d6444db3e7b4e054a2104ee76b3a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 01:11:16 +0300 Subject: Replace SDL_IsTextInputActive to lower level SDL function call. --- src/gui/windowmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windowmanager.cpp') diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index ab4224f25..054f19f12 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -473,7 +473,7 @@ void WindowManager::setIcon() bool WindowManager::isKeyboardVisible() { #ifdef USE_SDL2 - return SDL_IsTextInputActive(); + return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE; #else // USE_SDL2 return mKeyboardHeight > 1; -- cgit v1.2.3-60-g2f50