mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 18:24:08 +00:00
[client] displayserver: add new earlyInit
to the interface
Some platforms such as Wayland need to set environment vairables before SDL is initialized, as such this change detects the display server before SDL has started and calls the new `earlyInit` method providing the implementation an opportunity to set things up.
This commit is contained in:
@@ -49,7 +49,10 @@ struct LG_DisplayServerOps
|
||||
{
|
||||
const SDL_SYSWM_TYPE subsystem;
|
||||
|
||||
/* early initialization */
|
||||
/* called before SDL has been initialized */
|
||||
bool (*earlyInit)(void);
|
||||
|
||||
/* called after SDL has been initialized */
|
||||
void (*init)(SDL_SysWMinfo * info);
|
||||
|
||||
/* called at startup after window creation, renderer and/or SPICE is ready */
|
||||
|
Reference in New Issue
Block a user