summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-09 01:11:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-09 01:11:16 +0300
commit2982a0a5336d6444db3e7b4e054a2104ee76b3a5 (patch)
tree6ec1d474f90717da80b9ed602cf48aacd57bb7e3 /src/gui
parentaf5cdf2f017a012bfc2ea4a5157607f12ce76ce9 (diff)
downloadmanaplus-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.cpp2
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;