Fix UI freeze during maintenance reloads on Wayland/Linux (#1114)
This commit is contained in:
1 parent
866663c0b1
commit
3aec843bbb
2 files changed
+19
-3
No files matched your search
@@ -7,6 +7,7 @@ from multiprocessing import freeze_support
|
||||
if __name__ == "__main__":
|
||||
freeze_support()
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
import signal
|
||||
import asyncio
|
||||
@@ -40,6 +41,11 @@ if __name__ == "__main__":
|
||||
if sys.version_info < (3, 10):
|
||||
raise RuntimeError("Python 3.10 or higher is required")
|
||||
|
||||
# Suppress X11 Input Method registration on Linux to prevent
|
||||
# XWayland/Mutter lockups during heavy Tkinter layout updates.
|
||||
if sys.platform.startswith("linux") and "XMODIFIERS" not in os.environ:
|
||||
os.environ["XMODIFIERS"] = "@im=none"
|
||||
|
||||
class Parser(argparse.ArgumentParser):
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user