on tty0 i start gnome as described here:
https://wiki.archlinux.org/index.php/GNOME#Wayland_sessions
export QT_QPA_PLATFORM=wayland
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session
on tty1 i start weston:
nohup weston &
on weston i open a weston-terminal. the following works:
xeyes
export DISPLAY=:0
xeyes
xport DISPLAY=:1
xeyes
then, i go to gnome, open a gnome terminal, and i can one time open xeyes, then nothing works.
$ xeyes
$ firefox
Gdk-Message: firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
funny is as well, if after the start of weston, no x application was run, connecting from gnome does not work.
this is on arch linux, versions:
weston 1.12.0-2
wayland 1.12.0-1
gnome-shell 3.22.2+18+gdf7727a-1
xorg-server 1.19.1-1