Merge pull request #5464 from PySimpleGUI/Dev-latest

Added a wait_visibility call to fix the Linux "jumping window" proble…
This commit is contained in:
PySimpleGUI 2022-05-11 11:19:08 -04:00 committed by GitHub
commit 00397d411f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.60.0.1 Unreleased" version = __version__ = "4.60.0.2 Unreleased"
_change_log = """ _change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022 Changelog since 4.60.0 released to PyPI on 8-May-2022
@ -8,6 +8,8 @@ _change_log = """
4.60.0.1 4.60.0.1
main_open_github_issue - prefill the "Details" using the platform module (thank you macdeport!) main_open_github_issue - prefill the "Details" using the platform module (thank you macdeport!)
Fills Mac, Windows and Linux with details Fills Mac, Windows and Linux with details
4.60.0.2
Fix for the "jumping window problem on Linux". Major credit to Chr0nic for his amazing "stick with it" work on this problem!
""" """
@ -16822,6 +16824,9 @@ def StartupTK(window):
if not running_mac() or \ if not running_mac() or \
(running_mac() and not window.NoTitleBar) or \ (running_mac() and not window.NoTitleBar) or \
(running_mac() and window.NoTitleBar and not _mac_should_apply_notitlebar_patch()): (running_mac() and window.NoTitleBar and not _mac_should_apply_notitlebar_patch()):
if running_linux(): # a fix for the "jumping window" problem introduced by the Linux Windowing manager in 2022
root.wait_visibility(root)
root.attributes('-alpha', 0) # hide window while building it. makes for smoother 'paint' root.attributes('-alpha', 0) # hide window while building it. makes for smoother 'paint'
except Exception as e: except Exception as e:
print('*** Exception setting alpha channel to zero while creating window ***', e) print('*** Exception setting alpha channel to zero while creating window ***', e)