summarylogtreecommitdiffstats
path: root/autokey.patch
diff options
context:
space:
mode:
authorMark Wagie2021-04-07 11:34:52 -0600
committerMark Wagie2021-04-07 11:34:52 -0600
commit1b2b152965598b98923fce6dba48580198df682e (patch)
tree28d4d8ee3c773ef746afc305e56c4a8a01f41399 /autokey.patch
parentf71778209536ab5ca67f65d19dbd0b49cb7eecda (diff)
downloadaur-1b2b152965598b98923fce6dba48580198df682e.tar.gz
add patch
Diffstat (limited to 'autokey.patch')
-rw-r--r--autokey.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/autokey.patch b/autokey.patch
new file mode 100644
index 000000000000..3c0c5b4d80a8
--- /dev/null
+++ b/autokey.patch
@@ -0,0 +1,25 @@
+--- src/autokey-0.95.10/lib/autokey/interface.py
++++ src/autokey-0.95.10/lib/autokey/interface.py
+@@ -751,6 +751,10 @@ class XInterfaceBase(threading.Thread):
+
+ focus = self.localDisplay.get_input_focus().focus
+
++ # Patch from https://code.google.com/archive/p/autokey/issues/278
++ self.localDisplay.flush()
++ time.sleep(0.01)
++
+ for char in string:
+ try:
+ keyCodeList = self.localDisplay.keysym_to_keycodes(ord(char))
+@@ -796,6 +800,11 @@ class XInterfaceBase(threading.Thread):
+ self.__enqueue(self.__sendKey, keyName)
+
+ def __sendKey(self, keyName):
++
++ # Patch from https://code.google.com/archive/p/autokey/issues/278
++ self.localDisplay.flush()
++ time.sleep(0.01)
++
+ logger.debug("Send special key: [%r]", keyName)
+ self.__sendKeyCode(self.__lookupKeyCode(keyName))
+