Maximize on primary screen

This commit is contained in:
lm 2025-10-19 20:01:07 +02:00
parent fb9d6ebee6
commit b882e5d751
1 changed files with 7 additions and 1 deletions

View File

@ -51,5 +51,11 @@ def run() -> int:
defaults=DEFAULTS.copy(),
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
)
window.showMaximized()
primary_screen = app.primaryScreen()
if primary_screen is not None:
geometry = primary_screen.availableGeometry()
window.setGeometry(geometry)
window.showMaximized()
else:
window.showMaximized()
return app.exec()