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);