Mutter は GNOME 向けのウィンドウマネージャーです。 これは直接起動されるものではなく、(ハードウェアアクセラレーターによるビデオドライバーを利用するマシン上において)GNOME Session から起動されます。
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://download.gnome.org/sources/mutter/45/mutter-45.2.tar.xz
ダウンロード MD5 sum: 5e210826424ccd997dc61ca42000872b
ダウンロードサイズ: 2.8 MB
必要ディスク容量: 100 MB (with tests)
概算ビルド時間: 0.7 SBU (Using parallelism=4; add 1.4 SBU for tests)
gnome-settings-daemon-45.0, graphene-1.10.8, libei-1.2.0, libxcvt-0.1.2, libxkbcommon-1.6.0, pipewire-1.0.0
desktop-file-utils-0.27, gobject-introspection-1.78.1, startup-notification-0.12
libinput-1.24.0, Wayland-1.22.0, wayland-protocols-1.32, and Xwayland-23.2.3
dbusmock-0.30.0 (required for tests), Xorg-Server-21.1.10 (for X11 sessions), and sysprof
以下のコマンドを実行して Mutter をビルドします。
mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -Dtests=false \ -Dprofiler=false \ .. && ninja
The test suite requires an external program called xvfb-run. If you wish to run the
tests, you should download and install it before running
meson. You can obtain
it from xvfb-run,
and install it with executable permissions in /usr/bin
. xvfb-run needs Xvfb at runtime, and Xvfb can be installed from either
Xorg-Server-21.1.10 or Xwayland-23.2.3. You should also replace
-Dtests=false
in the
meson command, with
-Dtests=true
-Dclutter_tests=false
. The test suite requires the
mutter schema to be installed on the system, so it is better to run
the tests after installing the package.
You can also test basic functions of Mutter following 「Starting Mutter」, after installing it.
root
ユーザーになって以下を実行します。
ninja install
If you wish to run the tests, remove the reference to Zenity which is not a part of BLFS from one test:
sed 's/zenity --[a-z]*/gtk4-demo/' -i ../src/tests/x11-test.sh
Now run the test suite:
ninja test
The tests require an active X or wayland session. One test named
input-capture
is known to fail. A few
other tests may fail depending on the configuration. Don't make any
mouse or keyboard input while the test suite is running or some
tests may fail.
--buildtype=release
:
本パッケージの安定版リリース向けに適したビルドタイプを指定します。
デフォルトにしていると、最適化されていないバイナリを生成する場合があるためです。
-Dtests=false
: Prevents
building the tests, and removes a hard requirement on xvfb-run.
-Dprofiler=false
: Allow
building this package without Sysprof. Remove this option if you've
installed Sysprof and want to
analysis the rendering performance of Mutter.
-Dtests=true -Dclutter_tests=false
:
Building all the tests but the tests for the shipped Clutter library. The Clutter tests are known to fail with
--buildtype=release
.
Mutter is normally used as a component of gnome-shell, but it can be used as a standalone Wayland compositor too. To run Mutter as a Wayland compositor, in a virtual console, issue:
mutter --wayland -- vte-2.91
Replace vte-2.91 with the command line for the first application you want in the Wayland session. Note that once this application exits, the Wayland session will be terminated.
Mutter can also function as a nested compositor in another Wayland session. In a terminal emulator, issue:
MUTTER_DEBUG_DUMMY_MODE_SPECS=1920x1080 mutter --wayland --nested -- vte-2.91
Replace 1920x1080
with
the size you want for the nested Wayland session.