MCPcopy Create free account
hub / github.com/deskflow/deskflow / getKeyMap

Method getKeyMap

src/lib/platform/XWindowsKeyState.cpp:205–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void XWindowsKeyState::getKeyMap(deskflow::KeyMap &keyMap)
206{
207 // get autorepeat info. we must use the global_auto_repeat told to
208 // us because it may have modified by deskflow.
209 int oldGlobalAutoRepeat = m_keyboardState.global_auto_repeat;
210 XGetKeyboardControl(m_display, &m_keyboardState);
211 m_keyboardState.global_auto_repeat = oldGlobalAutoRepeat;
212
213#if HAVE_XKB_EXTENSION
214 if (m_xkb != nullptr) {
215 if (XkbGetUpdatedMap(m_display, XkbKeyActionsMask | XkbKeyBehaviorsMask | XkbAllClientInfoMask, m_xkb) == Success) {
216 updateKeysymMapXKB(keyMap);
217 return;
218 }
219 }
220#endif
221 updateKeysymMap(keyMap);
222}
223
224bool XWindowsKeyState::setCurrentLanguageWithDBus(int32_t group) const
225{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected