Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix persistence of window position #1745

Merged
merged 3 commits into from
Jun 19, 2022
Merged

Fix persistence of window position #1745

merged 3 commits into from
Jun 19, 2022

Conversation

Barugon
Copy link
Contributor

@Barugon Barugon commented Jun 16, 2022

Issue
#1737

Changes
Store the inner position only for MacOS; other platforms store the outer position.

Self {
inner_pos: window
let position = if cfg!(macos) {
// Use the inner position for MacOS
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, it is better to wording like "MacOS uses inner position when positioning windows" or something, added details from your findings also would be helpful.

Right now this comment looks like Captain Obvious statement.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@emilk emilk merged commit f5b2363 into emilk:master Jun 19, 2022
@Barugon
Copy link
Contributor Author

Barugon commented Jun 19, 2022

Thanks.

@Barugon Barugon deleted the window_pos branch June 19, 2022 15:37
Titaniumtown pushed a commit to Titaniumtown/egui that referenced this pull request Jun 20, 2022
* Fix window position

* Better comment

* Add doc link
Titaniumtown pushed a commit to Titaniumtown/egui that referenced this pull request Jun 20, 2022
* Fix window position

* Better comment

* Add doc link
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 participants