-
Notifications
You must be signed in to change notification settings - Fork 567
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
feat: reposition darwin traffic-lights in title bar #6102
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fc8dc4c
to
224c84b
Compare
224c84b
to
af3f98a
Compare
af3f98a
to
f36fcb6
Compare
f36fcb6
to
af51129
Compare
CI still fails with terrible build errors on Linux it seems, an issue that isn't reproducible on MacOS. Does the following reproduce the issue locally on Linux?
|
01f08fd
to
e186ffb
Compare
e186ffb
to
448b022
Compare
@Byron can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks good to me and I re-validated it after making some final adjustments.
d1b1fa4
to
21666af
Compare
21666af
to
5cc94a7
Compare
5cc94a7
to
2140366
Compare
2140366
to
8b9aec6
Compare
// NOTE: Make sure you only call this ONCE per window. | ||
{ | ||
if let Some(window) = tauri_app.get_window("main") { | ||
#[cfg(target_os = "macos")] | ||
// NOTE: Make sure you only call this ONCE per window. | ||
window | ||
.setup_traffic_lights_inset(LogicalPosition::new(16.0, 25.0))?; | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only called once for the app atm, and doesn't reposition new lights in new windows. Also, it applies the same positioning to V2. Let's fix before we need to make a next release!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Byron looks like there was a reason for the 2nd call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the issues @mtsgrd is describing would be true in multi-window mode and when V3 and V2 is switched while the app is running?
Indeed it's made to only work if the app launches in V3 mode and it's assumed to only have one Window - multi-window support was never made official, and from what I remember it's currently hanging/deadlocking on Windows even. When V3 is switched to V2, the app needs a restart for the buttons to appear in the right spot.
Should there be a follow-up that makes this multi-window compatible?
@Byron looks like there was a reason for the 2nd call
Maybe, but if it wasn't added by you or me, who would know about it?
🧢 Changes
☕️ Reasoning