Bloc icon indicating copy to clipboard operation
Bloc copied to clipboard

Bug on minimize with Morphic backend

Open Nyan11 opened this issue 2 years ago • 1 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

My steps to reproduce:

  1. Evaluate:
space := BlSpace new.
space useMorphicHost.
space show.
  1. Move the mouse, and a corresponding icon will appear at the end of the windows bar (at bottom)
  2. Evaluate 'space minimize'.
  3. Move the mouse and the icon in the windows bar will dissapear.

tinchodias avatar Jun 24 '25 17:06 tinchodias