vbox6: adapt to GUI framebuffer size on startup

Explicitly, adapt to current framebuffer/window size after
initialization finished. This ensures the use of the correct framebuffer
dimensions in scenarios without a window manager.

Thanks to Raphael for the patch.
This commit is contained in:
Christian Helmuth 2021-11-16 09:03:14 +01:00
parent 3b456e0037
commit 974627f700

View File

@ -365,7 +365,15 @@ struct Main : Event_handler
ievent_source->RegisterListener(listener, ComSafeArrayAsInParam(event_types), true);
}
Main(Genode::Env &env) : _env(env) { }
Main(Genode::Env &env) : _env(env)
{
/*
* Explicitly, adapt to current framebuffer/window size after
* initialization finished. This ensures the use of the correct
* framebuffer dimensions in scenarios without a window manager.
*/
_handle_fb_mode();
}
};