diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-09 01:11:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-09 01:11:16 +0300 |
commit | 2982a0a5336d6444db3e7b4e054a2104ee76b3a5 (patch) | |
tree | 6ec1d474f90717da80b9ed602cf48aacd57bb7e3 /src/gui | |
parent | af5cdf2f017a012bfc2ea4a5157607f12ce76ce9 (diff) | |
download | manaplus-2982a0a5336d6444db3e7b4e054a2104ee76b3a5.tar.gz manaplus-2982a0a5336d6444db3e7b4e054a2104ee76b3a5.tar.bz2 manaplus-2982a0a5336d6444db3e7b4e054a2104ee76b3a5.tar.xz manaplus-2982a0a5336d6444db3e7b4e054a2104ee76b3a5.zip |
Replace SDL_IsTextInputActive to lower level SDL function call.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |