Sitelet https://github.com/gpodder/gpodder/pull/1356
Skip to content

Reset window position if completely off-screen. - #1356

Merged
elelay merged 1 commit into
gpodder:masterfrom
auouymous:dont-place-hidden-windows
Aug 25, 2022
Merged

elelay merged 1 commit into
gpodder:masterfrom
auouymous:dont-place-hidden-windows

Conversation

@auouymous

Copy link
Copy Markdown
Member

This requires one pixel of any side of the window to be on-screen, or it resets the position to default. It might be more useful if it required ten or more pixels so the window would be more visible.

Fixes #1352.

@auouymous

Copy link
Copy Markdown
Member Author

Or maybe at least 1/4 to 1/2 of the width and height to be visible.

@auouymous
auouymous force-pushed the dont-place-hidden-windows branch from 4804bd6 to 5cef757 Compare August 22, 2022 01:10
@auouymous
auouymous marked this pull request as ready for review August 22, 2022 01:10
@auouymous

Copy link
Copy Markdown
Member Author

I changed it to reset if more than 50% of the window is off-screen, so enough is visible to see it. I double anyone has 50% of the window off-screen because it is unlikely that even narrow windows would be usable with only 50% visible.

@elelay elelay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
minor syntax change to make it more concise

Comment thread src/gpodder/gtkui/config.py Outdated
@auouymous
auouymous force-pushed the dont-place-hidden-windows branch from 5cef757 to 3a4cd02 Compare August 23, 2022 06:53
@elelay
elelay merged commit 098438b into gpodder:master Aug 25, 2022
@elelay

elelay commented Aug 25, 2022

Copy link
Copy Markdown
Member

Merged, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3.11.0 Soft crashing when checking for new podcasts

2 participants