Maximize on primary screen
This commit is contained in:
@@ -51,5 +51,11 @@ def run() -> int:
|
||||
defaults=DEFAULTS.copy(),
|
||||
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
|
||||
)
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user