| 20 | namespace deskflow { |
| 21 | |
| 22 | EiKeyState::EiKeyState(EiScreen *screen, IEventQueue *events) |
| 23 | : KeyState( |
| 24 | events, AppUtil::instance().getKeyboardLayoutList(), Settings::value(Settings::Client::LanguageSync).toBool() |
| 25 | ), |
| 26 | m_screen{screen} |
| 27 | { |
| 28 | m_xkb = xkb_context_new(XKB_CONTEXT_NO_FLAGS); |
| 29 | |
| 30 | // FIXME: PrimaryClient->enable() calls into our keymap, so we must have |
| 31 | // one during initial startup - even before we know what our actual keymap is. |
| 32 | // Once we get the actual keymap from EIS, we swap it out so hopefully that's |
| 33 | // enough. |
| 34 | initDefaultKeymap(); |
| 35 | } |
| 36 | |
| 37 | void EiKeyState::initDefaultKeymap() |
| 38 | { |
nothing calls this directly
no test coverage detected