forked from enlightenment/efl
ecore-wl2: Remove erroneous check for wayland display
NB: No real major changes, just removal of an extra 'if' block. If getenv of wayland display fails, we hard-code the default wayland display name so subsequent check for 'if (n)' is erroneous Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
ca55a920d9
commit
f7796faa59
|
@ -636,18 +636,13 @@ ecore_wl2_display_connect(const char *name)
|
||||||
{
|
{
|
||||||
/* client wants to connect to default display */
|
/* client wants to connect to default display */
|
||||||
n = getenv("WAYLAND_DISPLAY");
|
n = getenv("WAYLAND_DISPLAY");
|
||||||
|
if (!n) n = "wayland-0";
|
||||||
|
|
||||||
if (!n)
|
/* we have a default wayland display */
|
||||||
n = "wayland-0";
|
|
||||||
|
|
||||||
if (n)
|
/* check hash of cached client displays for this name */
|
||||||
{
|
ewd = eina_hash_find(_client_displays, n);
|
||||||
/* we have a default wayland display */
|
if (ewd) goto found;
|
||||||
|
|
||||||
/* check hash of cached client displays for this name */
|
|
||||||
ewd = eina_hash_find(_client_displays, n);
|
|
||||||
if (ewd) goto found;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue