Do not move window if maximised.

The delayed move can reposition the window after it has been maximized.
This commit is contained in:
auouymous 2023-03-11 03:15:29 -07:00
parent 3d690633ee
commit 1725b471fa
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class UIConfig(config.Config):
# https://github.com/gpodder/gpodder/pull/933#issuecomment-818039693
if cfg.x == -1 or cfg.y == -1:
window.set_position(Gtk.WindowPosition.CENTER_ON_PARENT)
else:
elif not cfg.maximized:
window.move(cfg.x, cfg.y)
# From Gtk docs: most window managers ignore requests for initial window
# positions (instead using a user-defined placement algorithm) and honor