Skip to content

Fix persistence of window position#1745

Merged
emilk merged 3 commits intoemilk:masterfrom
Barugon:window_pos
Jun 19, 2022
Merged

Fix persistence of window position#1745
emilk merged 3 commits intoemilk:masterfrom
Barugon:window_pos

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