Only use window.lift() on non-macOS platforms

This commit is contained in:
CorpNewt
2024-12-02 05:55:55 -06:00
committed by GitHub
parent 1374af5612
commit 02ceafa4c3
+5 -1
View File
@@ -1962,7 +1962,11 @@ class ProperTree:
if window is None: return # No windows in the stack order?
if deiconify and window.state() == "iconic":
window.deiconify() # Lift minimized windows as well
window.lift()
if sys.platform != "darwin":
# For all non-macOS platforms, lift the window
# whether deiconifying or not. Don't lift on
# macOS as it deiconifies windows.
window.lift()
window.focus_force()
try: window._tree.focus_force()
except: pass