From dd549604e28266a07f1f15950cae46bb971b7dd3 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 6 Aug 2016 16:16:41 +0200 Subject: [PATCH] xwayland: Fix typo Check the unix_fd, which is the one just created, the abstract_fd is already checked above. --- src/wayland/meta-xwayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index e8631c79e..1b96ce562 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -426,7 +426,7 @@ choose_xdisplay (MetaXWaylandManager *manager) } manager->unix_fd = bind_to_unix_socket (display); - if (manager->abstract_fd < 0) + if (manager->unix_fd < 0) { unlink (lock_file); close (manager->abstract_fd);