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 */
|
||||
n = getenv("WAYLAND_DISPLAY");
|
||||
if (!n) n = "wayland-0";
|
||||
|
||||
if (!n)
|
||||
n = "wayland-0";
|
||||
/* we have a default wayland display */
|
||||
|
||||
if (n)
|
||||
{
|
||||
/* we have a default wayland display */
|
||||
|
||||
/* check hash of cached client displays for this name */
|
||||
ewd = eina_hash_find(_client_displays, n);
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue