diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2018-02-02 16:35:26 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2018-02-05 11:36:19 +0000 |
commit | 589e999049d00d56aafcc2fa3c1e63cee5b3182b (patch) | |
tree | c5d8fc796bef812d787f45d1b13adced0b4db945 /src | |
parent | d8f2f583e69fa5e61395bc0e9af5a2b7c1b4a5e4 (diff) | |
download | mutter-589e999049d00d56aafcc2fa3c1e63cee5b3182b.tar.gz |
wayland: Do not fail on stalled .X11-unix entries
If for whatever reason, there are stalled files in /tmp/.X11-unix/ the
bind() to the abstract socket will succeed but not the bind() to the
to the UNIX socket.
This causes gnome-shell/mutter to fail because it cannot start Xwayland
(while it could actually, by using a different display).
In case of failure to bind to the UNIX socket, try the next display
instead of failing, to avoid stalled entries in /tmp/.X11-unix.
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/13
Diffstat (limited to 'src')
-rw-r--r-- | src/wayland/meta-xwayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index b185c0a5f..19b95c636 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -465,7 +465,8 @@ choose_xdisplay (MetaXWaylandManager *manager) { unlink (lock_file); close (manager->abstract_fd); - return FALSE; + display++; + continue; } break; |