Corrected an issue related to have the main window maximized upon startup on Wayland platforms (started with Qt 6.7.0). eric7

Fri, 26 Apr 2024 15:20:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 26 Apr 2024 15:20:23 +0200
branch
eric7
changeset 10702
b0d4e74b8f55
parent 10701
56fce4058bf1
child 10703
120b22aaec31

Corrected an issue related to have the main window maximized upon startup on Wayland platforms (started with Qt 6.7.0).

src/eric7/UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/src/eric7/UI/UserInterface.py	Fri Apr 26 14:29:19 2024 +0200
+++ b/src/eric7/UI/UserInterface.py	Fri Apr 26 15:20:23 2024 +0200
@@ -8489,7 +8489,10 @@
         @type QShowEvent
         """
         if self.__startup:
-            if Preferences.getGeometry("MainMaximized"):
+            if (
+                Preferences.getGeometry("MainMaximized")
+                and not DesktopUtilities.isWaylandSession()
+            ):
                 self.setWindowState(Qt.WindowState.WindowMaximized)
             self.__startup = False
 

eric ide

mercurial