Bug 258042 - x11-wm/mutter: expose nested Wayland support
Summary: x11-wm/mutter: expose nested Wayland support
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2021-08-25 14:05 UTC by Jan Beich
Modified: 2022-06-11 11:10 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
v1 (3.36.6) (13.09 KB, patch)
2021-08-25 14:05 UTC, Jan Beich
no flags Details | Diff
v1 (41.0) (20.33 KB, patch)
2021-10-02 10:47 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2021-08-25 14:05:19 UTC
Created attachment 227426 [details]
v1 (3.36.6)

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
Comment 1 Jan Beich freebsd_committer 2021-09-16 22:22:34 UTC
Ping. Did anyone test?
Comment 2 Jan Beich freebsd_committer 2021-10-02 10:47:36 UTC
Created attachment 228353 [details]
v1 (41.0)