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