Enable hiding* OSK on Linux (*actually, killing)

preferencesAboutTextFull
Craig Watson 8 years ago
parent 6fc70bef99
commit f7ed005a69
  1. 13
      src/frameworks/UBPlatformUtils_linux.cpp

@ -442,8 +442,13 @@ void UBPlatformUtils::showFullScreen(QWidget *pWidget)
void UBPlatformUtils::showOSK(bool show)
{
if (show) {
QProcess newProcess;
newProcess.startDetached("/usr/bin/env onboard");
}
QProcess oskProcess;
if (show)
oskProcess.startDetached("/usr/bin/env onboard");
else
/* Not exactly a great solution, but it isn't possible to just
* close onboard through wmctrl or xdotool */
oskProcess.startDetached("pkill -3 onboard");
}

Loading…
Cancel
Save