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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Aug 2021 14:05:19 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258042

            Bug ID: 258042
           Summary: x11-wm/mutter: expose nested Wayland support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome_at_FreeBSD.org
          Reporter: jbeich_at_FreeBSD.org
             Flags: maintainer-feedback?(gnome_at_FreeBSD.org)
          Assignee: gnome_at_FreeBSD.org

Created attachment 227426
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227426&action=edit
v1

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Wed Aug 25 2021 - 14:05:19 UTC

Original text of this message