diff --git a/src/autotype/x11/AutoTypeX11.cpp b/src/autotype/x11/AutoTypeX11.cpp index ab9a7a6b..5cb3d27f 100644 --- a/src/autotype/x11/AutoTypeX11.cpp +++ b/src/autotype/x11/AutoTypeX11.cpp @@ -155,7 +155,7 @@ int AutoTypePlatformX11::platformEventFilter(void* event) if (xevent->type == KeyPress && m_currentGlobalKey && xevent->xkey.keycode == m_currentGlobalKeycode && (xevent->xkey.state & m_modifierMask) == m_currentGlobalNativeModifiers && !QApplication::focusWidget()) { - QMetaObject::invokeMethod(this, "globalShortcutTriggered", Qt::QueuedConnection); + Q_EMIT globalShortcutTriggered(); return 1; } if (xevent->type == MappingNotify) {