Don't re-register the global shortcut when the keyboard mapping changes.

This breaks after the first global auto-type.
This commit is contained in:
Felix Geyer 2012-07-16 17:33:23 +02:00
parent 85d532953f
commit 0b8f07f58e

View File

@ -369,10 +369,11 @@ void AutoTypePlatformX11::updateKeymap() {
m_modifierMask = ControlMask | ShiftMask | m_altMask | m_metaMask;
if (m_currentGlobalKey && m_currentGlobalModifiers) {
// TODO: figure out why this breaks after the first global auto-type
/*if (m_currentGlobalKey && m_currentGlobalModifiers) {
unregisterGlobalShortcut(m_currentGlobalKey, m_currentGlobalModifiers);
registerGlobalShortcut(m_currentGlobalKey, m_currentGlobalModifiers);
}
}*/
}
void AutoTypePlatformX11::startCatchXErrors()