Re: [PATCH v3 2/3] ui/console: Pass placeholder surface to displays

2021-02-25 Thread Gerd Hoffmann
> +static void dpy_gfx_switch(DisplayChangeListener *dcl, DisplaySurface > *surface) int width, int height; > +static DisplaySurface *placeholder; > +static const char placeholder_msg[] = "Display output is not active."; > +DisplaySurface *broadcast; > + > +if

[PATCH v3 2/3] ui/console: Pass placeholder surface to displays

2021-02-24 Thread Akihiko Odaki
ui/console used to accept NULL as graphic console surface, but its semantics was inconsistent among displays: - cocoa and gtk-egl perform NULL dereference. - egl-headless, spice and spice-egl do nothing. - gtk releases underlying resources. - sdl2-2d and sdl2-gl destroys the window. - vnc shows a