[client] displayservers: add name field

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-07-13 07:05:07 +10:00
1 parent 97c5b8c3a7
commit 0dabfdc432
3 files changed
+4

No files matched your search

+1
View File
@@ -154,6 +154,7 @@ static bool waylandGetProp(LG_DSProperty prop, void * ret)
struct LG_DisplayServerOps LGDS_Wayland =
{
.name = "Wayland",
.setup = waylandSetup,
.probe = waylandProbe,
.earlyInit = waylandEarlyInit,
+1
View File
@@ -1922,6 +1922,7 @@ static void x11Minimize(void)
struct LG_DisplayServerOps LGDS_X11 =
{
.name = "X11",
.setup = x11Setup,
.probe = x11Probe,
.earlyInit = x11EarlyInit,
+2
View File
@@ -110,6 +110,8 @@ typedef struct LGEvent LGEvent;
struct LG_DisplayServerOps
{
const char * name;
/* called before options are parsed, useful for registering options */
void (*setup)(void);