Global Hotkeys Cause Error (Arch Linux)
-
Whenever I press ctrl-alt-s I get the following error:
Debug info:
Anki 2.1.62 (77dd1dc1) Python 3.11.3 Qt 6.5.0 PyQt 6.5.0
Platform: Linux-6.3.1-arch1-1-x86_64-with-glibc2.37
Flags: frz=False ao=True sv=2
Add-ons, last update check: 2023-05-09 11:55:44
Add-ons possibly involved: Migaku Anki Add-onCaught exception:
Traceback (most recent call last):
File "/home/zola/.local/share/Anki2/addons21/1846879528/global_hotkeys.py", line 185, in on_action_fired
self.request_seltected_text(action)
File "/home/zola/.local/share/Anki2/addons21/1846879528/global_hotkeys.py", line 198, in request_seltected_text
self.keyboard_controller.release(key)
File "/home/zola/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/keyboard/_base.py", line 427, in release
self._handle(resolved, False)
File "/home/zola/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/keyboard/_xorg.py", line 242, in _handle
with display_manager(self._display) as dm:
File "/usr/lib/python3.11/contextlib.py", line 144, in exit
next(self.gen)
File "/home/zola/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/_util/xorg.py", line 82, in display_manager
raise X11Error(errors)
pynput._util.xorg.X11Error: [(BadValue(<Xlib.display._BaseDisplay object at 0x7f40c3791310>, b'\x00\x02\x12\x00\x00\x00\x00\x00\x02\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), None)]I'm using the latest version of anki, the migaku addon, and chromium browser
Thank you.
edit: This error seems to occur when the migaku dictionary window is minimized or not displaying on the screen, in which case I get the above error. If, however, I have migaku dictionary on my screen or 2nd monitor nothing happens when I use the global hotkeys (i.e. no fields are filled).