Commit 6af5a5e6 authored by Rodney Dawes's avatar Rodney Dawes
Browse files

inputmethod: If KWIN_IM_SHOW_ALWAYS variable is set, show the keyboard

To allow for easier testing in development and for debugging purposes, when
the KWIN_IM_SHOW_ALWAYS environment variable is set, treat it as allowing
the keyboard to be shown, even when not using touch input.
parent df1938b8
Pipeline #201235 failed with stage
in 12 minutes and 28 seconds
......@@ -131,7 +131,8 @@ void InputMethod::hide()
bool InputMethod::shouldShowOnActive() const
{
return input()->touch() == input()->lastInputHandler()
static bool alwaysShowIm = qEnvironmentVariableIntValue("KWIN_IM_SHOW_ALWAYS") != 0;
return alwaysShowIm || input()->touch() == input()->lastInputHandler()
|| input()->tablet() == input()->lastInputHandler();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment