tk: set classPath upon instantiation

This fixes an issue on Linux (more specifically, on GNOME Shell 44),
where the window would be identified as "Tk".
This commit is contained in:
guihkx authored and DevilXD committed 2023-06-11 16:58:18 +02:00
1 parent f8c0dba1ee
commit 726082a157
1 file changed
+1 -1
+1 -1
View File
@@ -1876,7 +1876,7 @@ class GUIManager:
self._twitch: Twitch = twitch self._twitch: Twitch = twitch
self._poll_task: asyncio.Task[NoReturn] | None = None self._poll_task: asyncio.Task[NoReturn] | None = None
self._close_requested = asyncio.Event() self._close_requested = asyncio.Event()
self._root = root = Tk() self._root = root = Tk(className=WINDOW_TITLE)
# withdraw immediately to prevent the window from flashing # withdraw immediately to prevent the window from flashing
self._root.withdraw() self._root.withdraw()
# root.resizable(False, True) # root.resizable(False, True)