maintainer-feedback requested: [Bug 258042] x11-wm/mutter: expose nested Wayland support

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Aug 2021 14:05:19 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome (Nobody)
<gnome@FreeBSD.org> for maintainer-feedback:
Bug 258042: x11-wm/mutter: expose nested Wayland support
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258042



--- Description ---
Given -Dnative_backend=false Wayland session currently can only be nested on
top of Xorg (any WM) or Sway/Wayfire/hikari/etc (requires Xwayland) or Kwin
(kwin_wayland): a Mutter window appears where one can launch other apps. Unlike
Xephyr or Xnest the apps within such session still have GPU acceleration.

$ pkg install mutter glmark2 vkmark
$ ck-launch-session dbus-run-session mutter --wayland &
$ export WAYLAND_DISPLAY=$(sockstat -lu | awk '/mutter.*wayland/ { print $6;
exit }')
$ export DISPLAY=$(sockstat -lu | awk -F/ "/$(pgrep -f mutter-Xwayland)/"' {
sub(".*/X", ":"); print; exit }')
$ GDK_BACKEND=wayland gtk3-demo &
$ GDK_BACKEND=x11 gtk3-demo &
$ glmark2-wayland
$ glmark2
$ vkmark --winsys wayland
$ vkmark --winsys xcb