summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
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;