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

Fixed multiwindow closing issue again #3588

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

sertschgi
Copy link
Contributor

Like I explained in #3499 there is this issue where when creating a new window it cannot be closed again. This is due to references still pointing to the DesktopContext after being removed from webviews in app.rs. They themselves also cannot be dropped and this is not only because of the self referential structure. The problem has not been fixed with my previous pull request as half of it was simply ignored: If the DesktopContext Rc reference is upgraded again and added to other Structs it obviously cannot be dropped. Please test the examples. Also note that this fixes it for linux. For windows only partially.
Furthermore what I have noticed was that the issue was made worse because the main window cannot even be closed anymore because of the window decoration buttons not working - but this has probably nothing to do with this I'm just pointing it out...

@sertschgi sertschgi requested a review from a team as a code owner January 18, 2025 15:36
@jkelleyrtp jkelleyrtp added this to the 0.6.2 milestone Jan 21, 2025
@jkelleyrtp
Copy link
Member

jkelleyrtp commented Jan 21, 2025

We have to be careful not to break semver here unfortunately, so the interfaces need to remain the same but the internal details can change. IE we need to take Rc even if we downgrade it internally.

I'll take a look at tweaking that on this PR.

@jkelleyrtp
Copy link
Member

The multi-window example works for me on main - is there a particular repro you have?

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.

2 participants