From 0b8f07f58e897cc8525630fb5647900ff2abb7f0 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 16 Jul 2012 17:33:23 +0200 Subject: [PATCH] Don't re-register the global shortcut when the keyboard mapping changes. This breaks after the first global auto-type. --- src/autotype/x11/AutoTypeX11.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/autotype/x11/AutoTypeX11.cpp b/src/autotype/x11/AutoTypeX11.cpp index 5cb3d27f9..f52e41c27 100644 --- a/src/autotype/x11/AutoTypeX11.cpp +++ b/src/autotype/x11/AutoTypeX11.cpp @@ -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()