-
Notifications
You must be signed in to change notification settings - Fork 40
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
About switching host while space is opened #636
Comments
|
I added a note in a line added in |
tinchodias
added a commit
that referenced
this issue
Oct 24, 2024
tinchodias
added a commit
that referenced
this issue
Oct 24, 2024
Fixed with e2550e8 + 47df523 + 0a80636. I'm missing an automatized test yet. space := BlSpace new.
space host: BlMorphicWindowHost new.
space root background: Color random.
space extent: 400 asPoint.
space title: 'hello'.
space show.
"wait, and evaluate:"
space host: BlOSWindowSDL2Host new.
"wait, and evaluate:"
space useMorphicHost Screen.Recording.2024-10-23.at.23.54.05.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In BlParallelUniverse,
closeSpaceSynchronously:
anddetachSpaceSynchronously:
share most part of code (we should reuse more) BUT ALSO, the diff smells to bug:Left:
closeSpaceSynchronously:
- Right:detachSpaceSynchronously:
When are they used?
closeSpaceSynchronously:
, when a space is closed.detachSpaceSynchronously
when a space is opened and you change the host (like switch from a SDL2 window to a Morphic window on the fly, while it's open). This is not usual, so this is the candidate to be buggy (it should be adapt to what happens in close).In fact, I didn't know this was implemented. I knew that switching host was working but when you
show
, thenclose
, then change host, and sendshow
again... I mean, when it is closed you can switch host right now.Foe exmaple, this is implemented but buggy:
The text was updated successfully, but these errors were encountered: