Summary: if there is no env var AND no name, connection to wayland-0
Reviewers: raster, jpeg, devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D3945
{
/* client wants to connect to default display */
n = getenv("WAYLAND_DISPLAY");
+
+ if (!n)
+ n = "wayland-0";
+
if (n)
{
/* we have a default wayland display */
if (ewd) goto found;
}
- if ((!name) && (!n))
- {
- ERR("No Wayland Display Running");
- goto name_err;
- }
-
/* allocate space for display structure */
ewd = calloc(1, sizeof(Ecore_Wl2_Display));
if (!ewd) return NULL;