18 #include "InputMethodManager.h" 21 #include <unity/shell/application/MirSurfaceInterface.h> 26 Q_LOGGING_CATEGORY(INPUTMETHODMANAGER,
"InputMethodManager", QtInfoMsg)
27 #define DEBUG_MSG qCDebug(INPUTMETHODMANAGER).nospace().noquote() << __func__ 31 InputMethodManager *InputMethodManager::instance()
33 static InputMethodManager* inputMethod(
new InputMethodManager());
37 InputMethodManager::InputMethodManager()
41 void InputMethodManager::setWindow(
Window* window)
43 if (window == m_inputMethodWindow) {
47 DEBUG_MSG <<
"(" << window <<
")";
49 m_inputMethodWindow = window;
50 Q_EMIT surfaceChanged(surface());
53 unityapi::MirSurfaceInterface* InputMethodManager::surface()
const 55 return m_inputMethodWindow ? m_inputMethodWindow->surface() :
nullptr;
A slightly higher concept than MirSurface.