Bloc icon indicating copy to clipboard operation
Bloc copied to clipboard

Bug on minimize with Morphic backend

Open Nyan11 opened this issue 1 year ago • 0 comments

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 : image

Clic on minimize: image

The reopen it (by clicking on the bottom bar). image

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

Nyan11 avatar Jan 29 '24 09:01 Nyan11