Bloc icon indicating copy to clipboard operation
Bloc copied to clipboard

BlSpace>>fullscreen: doesn't work at initialization

Open Enzo-Demeulenaere opened this issue 1 year ago • 1 comments

Hello,

it appears that the method BlSpace>>fullscreen: doesn't work if executed at the same time as the initialization of my space.

when executing this:

space := BlSpace new.
space root background: Color lightGreen.
space show.
space fullsize: true.
space fullscreen: true.

the space remains with the default size but if we execute the first 3 lines, and execute the fullscreen: true message once the space is rendered, then it will be fullscreen.

Also I tried using fullsize: but it doesn't seem to do anything when executed "all at once" and opens a debugger when executed once the space in rendered.

@tesonep should be able to give more details about what really happens with the HostSpace and all of these things a bit obscure for me

Regards, Enzo

Enzo-Demeulenaere avatar May 17 '24 09:05 Enzo-Demeulenaere

BlOSWindowHost >> createAttributesFor: aSpace doesn't manage fullscreen option. It's probably managed during space phase after an initial rendering..

In Bloc, the default host is BlOSWindowSDL2Host. From what I can see, fullsize: is used only when the host is BlMorphicWindowHost, and this backend will probably disappear with Morphic.

rvillemeur avatar Jul 02 '24 19:07 rvillemeur