Bloc
Bloc copied to clipboard
Bug on minimize with Morphic backend
Hello,
There is a bug with Morphic backend when you minimize the spec window.
Reproduction
bug 1
In a playground:
BlElement new openInNewSpace
The click on minimize.
The window is destroyed.
bug 2
Open the bloc demo :
Clic on minimize:
The reopen it (by clicking on the bottom bar).
The space is gone.
Explication
In BlMorphicSpaceHostMorph >> initializeAnnouncement, when the morph that contains the space receive MorphDeleted it triggers BlMorphicEventHandler >> handleWindowClosed: who in turn closes the space.
I think MorphDeleted is send when the window is minimize because the morph is remove from the world.
other
Pharo version : Pharo 11.0.0 Bloc version: ee22c665334f54da1860dc53a2cea5fc8782c70e , 2024-01-27 05:03
My steps to reproduce:
- Evaluate:
space := BlSpace new.
space useMorphicHost.
space show.
- Move the mouse, and a corresponding icon will appear at the end of the windows bar (at bottom)
- Evaluate 'space minimize'.
- Move the mouse and the icon in the windows bar will dissapear.