Commit e250d949 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

console: init displaychangelisteners on register


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent a93a4a22
......@@ -241,6 +241,9 @@ static inline void register_displaychangelistener(DisplayState *ds, DisplayChang
{
QLIST_INSERT_HEAD(&ds->listeners, dcl, next);
gui_setup_refresh(ds);
if (dcl->dpy_gfx_resize) {
dcl->dpy_gfx_resize(ds);
}
}
static inline void unregister_displaychangelistener(DisplayState *ds,
......
......@@ -3876,7 +3876,6 @@ int main(int argc, char **argv, char **envp)
#endif
/* display setup */
dpy_gfx_resize(ds);
text_consoles_set_display(ds);
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment