[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[2e704d1b] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[7f30c72] | 7 | <!ENTITY mutter-download-http "&gnome-download-http;/mutter/&gnome-47;/mutter-&mutter-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY mutter-download-ftp " ">
|
---|
[7f30c72] | 9 | <!ENTITY mutter-md5sum "20477e4f95d0a73e415f9ce86bfdd61e">
|
---|
| 10 | <!ENTITY mutter-size "6.5 MB">
|
---|
[7609bf4] | 11 | <!ENTITY mutter-buildsize "83 MB (with tests)">
|
---|
| 12 | <!ENTITY mutter-time "0.5 SBU (Using parallelism=4; add 1.4 SBU for tests)">
|
---|
[2e704d1b] | 13 | ]>
|
---|
| 14 |
|
---|
[51dfb3e] | 15 | <sect1 id="mutter" xreflabel="Mutter-&mutter-version;">
|
---|
[2e704d1b] | 16 | <?dbhtml filename="mutter.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Mutter-&mutter-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="mutter">
|
---|
| 22 | <primary sortas="a-Mutter">Mutter</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Mutter</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>Mutter</application> is the window manager for
|
---|
| 30 | <application>GNOME</application>. It is not invoked directly,
|
---|
| 31 | but from <application>GNOME Session</application> (on a
|
---|
| 32 | machine with a hardware accelerated video driver).
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[de74d323] | 35 | &lfs122_checked;
|
---|
[2e704d1b] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&mutter-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&mutter-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &mutter-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &mutter-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &mutter-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
[e792566] | 64 | <listitem>
|
---|
[2e704d1b] | 65 | <para>
|
---|
| 66 | Estimated build time: &mutter-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[e1d37d8] | 70 |
|
---|
[2e704d1b] | 71 | <bridgehead renderas="sect3">Mutter Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[5d1a066] | 75 | <xref linkend="gnome-settings-daemon"/>,
|
---|
[2c80efe] | 76 | <xref linkend="graphene"/>,
|
---|
[12079d3] | 77 | <xref linkend="libei"/>,
|
---|
[88e7954] | 78 | <xref linkend="libxcvt"/>,
|
---|
[e1d37d8] | 79 | <xref linkend="libxkbcommon"/>, and
|
---|
| 80 | <xref linkend="pipewire"/>
|
---|
[2e704d1b] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 84 | <para role="recommended">
|
---|
[078db5b6] | 85 | <xref linkend="desktop-file-utils"/>,
|
---|
[c0bc0a9] | 86 | &gobject-introspection;, and
|
---|
[d37d7c5] | 87 | <xref linkend="startup-notification"/>
|
---|
[2e704d1b] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Recommended (Required to
|
---|
| 91 | build the Wayland compositor)</bridgehead>
|
---|
| 92 | <para role="recommended">
|
---|
| 93 | <xref linkend="libinput"/>,
|
---|
[8558044] | 94 | <xref linkend="wayland"/>,
|
---|
[2e704d1b] | 95 | <xref linkend="wayland-protocols"/>, and
|
---|
[7d53a90] | 96 | <xref linkend="xwayland"/>
|
---|
[2e704d1b] | 97 | </para>
|
---|
| 98 |
|
---|
[2126b9e] | 99 | <bridgehead renderas="sect4"
|
---|
| 100 | revision="sysv">Recommended (Runtime)</bridgehead>
|
---|
| 101 | <para role="recommended" revision="sysv">
|
---|
| 102 | <xref linkend="blocaled" role="runtime"/>
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[88e7954] | 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 106 | <para role="optional">
|
---|
[790c36c] | 107 | <!-- sorted as "d" instead of "p" -->
|
---|
[1760143] | 108 | <xref linkend="python-dbusmock"/> (required for tests),
|
---|
[790c36c] | 109 | <xref linkend="libdisplay-info"/>,
|
---|
[0b4d98d] | 110 | <!--<xref linkend="sysprof"/>,-->
|
---|
| 111 | <xref linkend="xorg-server"/> (for X11 sessions), and
|
---|
| 112 | <ulink url="&sysprof-url;">sysprof</ulink>
|
---|
[88e7954] | 113 | </para>
|
---|
| 114 |
|
---|
[460609c] | 115 | <!-- NOTE: Mutter compiles shipped Cogl and Clutter for it's own
|
---|
[e792566] | 116 | internal use. This is because upstream have decided that Cogl and
|
---|
[460609c] | 117 | Clutter should be only used by Mutter in the future, so the development
|
---|
| 118 | of Cogl and Clutter is now performed in the Mutter repository. The
|
---|
[e792566] | 119 | "standalone" Cogl and Clutter are considered obsolete now and we have
|
---|
| 120 | archived them. -->
|
---|
[0129a2f5] | 121 |
|
---|
[2e704d1b] | 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="installation">
|
---|
| 125 | <title>Installation of Mutter</title>
|
---|
[1a8fb18] | 126 |
|
---|
[2e704d1b] | 127 | <para>
|
---|
| 128 | Install <application>Mutter</application> by running the following
|
---|
| 129 | commands:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
[dcea4e3] | 132 | <screen><userinput>mkdir build &&
|
---|
[77fb6ffc] | 133 | cd build &&
|
---|
[dcea4e3] | 134 |
|
---|
[6af00bd] | 135 | meson setup --prefix=/usr \
|
---|
| 136 | --buildtype=release \
|
---|
| 137 | -D tests=false \
|
---|
| 138 | -D profiler=false \
|
---|
| 139 | .. &&
|
---|
[dcea4e3] | 140 | ninja</userinput></screen>
|
---|
[2e704d1b] | 141 |
|
---|
[477bc4a] | 142 | <!--
|
---|
[2e704d1b] | 143 | <para>
|
---|
[74db4f4] | 144 | To test the results, issue:
|
---|
| 145 | <command>dbus-run-session ninja test</command>. The tests
|
---|
| 146 | require an active X session to run correctly. It is not necessary to
|
---|
| 147 | run a separate D-bus session if not in a GNOME session, but it
|
---|
[1a8fb18] | 148 | provides a clean environment in any case. One test,
|
---|
| 149 | <filename>native-headless</filename>, is known to fail.
|
---|
[2e704d1b] | 150 | </para>
|
---|
[477bc4a] | 151 | -->
|
---|
[ac60f17f] | 152 | <!-- there are no added problems in sysv, AFAICT. Running the tests is
|
---|
| 153 | not easy whatever the init system. But using the instructions below in
|
---|
| 154 | a gnome session on sysv works (no test failure)...
|
---|
[8b152256] | 155 | <para revision='sysv'>
|
---|
[15d6673a] | 156 | This package does not come with a test suite that runs properly in the
|
---|
[8b152256] | 157 | SystemV environment.
|
---|
[477bc4a] | 158 | </para>
|
---|
[ac60f17f] | 159 | -->
|
---|
[afea77c] | 160 |
|
---|
[ac60f17f] | 161 | <para>
|
---|
[460609c] | 162 | The test suite requires an
|
---|
[8b152256] | 163 | external program called <command>xvfb-run</command>. If you wish to run
|
---|
| 164 | the tests, you should download and install it before running
|
---|
| 165 | <command>meson</command>.
|
---|
[1fe05eb] | 166 |
|
---|
[8b152256] | 167 | You can obtain it from <ulink
|
---|
| 168 | url="&sources-anduin-http;/mutter/xvfb-run">xvfb-run</ulink>, and install
|
---|
| 169 | it with executable permissions in <filename
|
---|
| 170 | class="directory">/usr/bin</filename>. <command>xvfb-run</command> needs
|
---|
| 171 | <command>Xvfb</command> at runtime, and <command>Xvfb</command> can be
|
---|
| 172 | installed from either <xref linkend='xorg-server'/> or <xref
|
---|
| 173 | linkend='xwayland'/>.
|
---|
[1fe05eb] | 174 |
|
---|
[7f30c72] | 175 | You should also replace <parameter>-D tests=disabled</parameter> in the
|
---|
[3fbdcfc] | 176 | <command>meson</command> command, with
|
---|
[7f30c72] | 177 | <parameter>-D tests=enabled -D clutter_tests=false</parameter>. The test
|
---|
[8b152256] | 178 | suite requires the mutter schema to be installed on the system, so it is
|
---|
[ac60f17f] | 179 | better to run the tests after installing the package.
|
---|
| 180 | </para>
|
---|
[8b152256] | 181 |
|
---|
[afea77c] | 182 | <para>
|
---|
| 183 | You can also test basic functions of <application>Mutter</application>
|
---|
| 184 | following <xref linkend='mutter-starting'/>, after installing it.
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
[2e704d1b] | 187 | <para>
|
---|
| 188 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 189 | </para>
|
---|
| 190 |
|
---|
[dcea4e3] | 191 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[2e704d1b] | 192 |
|
---|
[e3c278d] | 193 | <para>
|
---|
| 194 | If you wish to run the tests, remove the reference to
|
---|
| 195 | <application>Zenity</application> which is not a part of BLFS
|
---|
| 196 | from one test:
|
---|
| 197 | </para>
|
---|
| 198 |
|
---|
[460609c] | 199 | <screen role='test'><userinput>sed 's/zenity --[a-z]*/gtk4-demo/' -i ../src/tests/x11-test.sh</userinput></screen>
|
---|
[e3c278d] | 200 |
|
---|
| 201 | <para>
|
---|
| 202 | Now run the test suite:
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
[12079d3] | 205 | <screen role='test'><userinput>ninja test</userinput></screen>
|
---|
[e3c278d] | 206 |
|
---|
[ac60f17f] | 207 | <para>
|
---|
[e3c278d] | 208 | The tests require an active X or wayland session.
|
---|
[494e6da] | 209 | Some tests are flaky (especially under a high system load) so if
|
---|
| 210 | a test fails you can try to re-run it alone with the
|
---|
| 211 | <command>meson test <replaceable><test name></replaceable></command>
|
---|
| 212 | command.
|
---|
| 213 | A few tests may fail depending on some system configuration.
|
---|
[1760143] | 214 | Don't make any mouse or keyboard input while the test suite is
|
---|
| 215 | running or some tests may fail.
|
---|
[34726a0] | 216 | </para>
|
---|
[460609c] | 217 |
|
---|
[2e704d1b] | 218 | </sect2>
|
---|
| 219 |
|
---|
[adf17153] | 220 | <sect2 role="commands">
|
---|
| 221 | <title>Command Explanations</title>
|
---|
| 222 |
|
---|
[69f58f5e] | 223 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 224 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[463b544e] | 225 |
|
---|
[3592a6e] | 226 | <para>
|
---|
[7f30c72] | 227 | <parameter>-D tests=disabled</parameter>: Prevents building the tests,
|
---|
[185b3090] | 228 | and removes a hard requirement on <command>xvfb-run</command>.
|
---|
[3592a6e] | 229 | </para>
|
---|
| 230 |
|
---|
[1ff2d21] | 231 | <para>
|
---|
[53f87df] | 232 | <parameter>-D profiler=false</parameter>: Allows building this package
|
---|
[d37d7c5] | 233 | without <application>Sysprof</application>. Remove this option if
|
---|
| 234 | you've installed <application>Sysprof</application> and want to
|
---|
[53f87df] | 235 | analyze the rendering performance of <application>Mutter</application>.
|
---|
[1ff2d21] | 236 | </para>
|
---|
[477bc4a] | 237 |
|
---|
[460609c] | 238 | <para>
|
---|
[7f30c72] | 239 | <option>-D tests=enabled -D clutter_tests=false</option>: This builds all
|
---|
| 240 | of the tests except for the tests for the shipped
|
---|
[53f87df] | 241 | <application>Clutter</application> library. The
|
---|
| 242 | <application>Clutter</application> tests are known to
|
---|
[875b3b57] | 243 | fail with <parameter>--buildtype=release</parameter>.
|
---|
[460609c] | 244 | </para>
|
---|
| 245 |
|
---|
[adf17153] | 246 | </sect2>
|
---|
| 247 |
|
---|
[afea77c] | 248 | <sect2 role="starting" id="mutter-starting">
|
---|
| 249 | <title>Starting Mutter</title>
|
---|
| 250 |
|
---|
[460609c] | 251 | <!-- Mutter as a Wayland compositor works with recent mutter releases.
|
---|
[afea77c] | 252 | IIRC mutter can also be used as a X window manager: just replace
|
---|
| 253 | "twm" with "mutter ‐‐x11" in xinitrc. But I've not tested
|
---|
| 254 | such a configuration recently (I don't build Xorg Server or xinit
|
---|
| 255 | these days. -->
|
---|
| 256 |
|
---|
| 257 | <para>
|
---|
| 258 | <application>Mutter</application> is normally used as a component of
|
---|
| 259 | <application>gnome-shell</application>, but it can be used as a
|
---|
| 260 | standalone Wayland compositor too. To run
|
---|
| 261 | <application>Mutter</application> as a Wayland compositor, in a
|
---|
| 262 | virtual console, issue:
|
---|
| 263 | </para>
|
---|
| 264 |
|
---|
| 265 | <screen role='nodump'><userinput>mutter --wayland -- vte-2.91</userinput></screen>
|
---|
| 266 |
|
---|
| 267 | <para>
|
---|
| 268 | Replace <command>vte-2.91</command> with the command line for the
|
---|
| 269 | first application you want in the Wayland session. Note that once this
|
---|
| 270 | application exits, the Wayland session will be terminated.
|
---|
| 271 | </para>
|
---|
| 272 |
|
---|
| 273 | <para>
|
---|
| 274 | <application>Mutter</application> can also function as a nested
|
---|
| 275 | compositor in another Wayland session. In a terminal emulator, issue:
|
---|
| 276 | </para>
|
---|
| 277 |
|
---|
| 278 | <screen role='nodump'><userinput>MUTTER_DEBUG_DUMMY_MODE_SPECS=1920x1080 mutter --wayland --nested -- vte-2.91</userinput></screen>
|
---|
| 279 |
|
---|
| 280 | <para>
|
---|
| 281 | Replace <replaceable>1920x1080</replaceable> with the size you want
|
---|
| 282 | for the nested Wayland session.
|
---|
| 283 | </para>
|
---|
| 284 | </sect2>
|
---|
| 285 |
|
---|
[2e704d1b] | 286 | <sect2 role="content">
|
---|
| 287 | <title>Contents</title>
|
---|
| 288 |
|
---|
| 289 | <segmentedlist>
|
---|
| 290 | <segtitle>Installed Programs</segtitle>
|
---|
| 291 | <segtitle>Installed Libraries</segtitle>
|
---|
| 292 | <segtitle>Installed Directories</segtitle>
|
---|
| 293 |
|
---|
| 294 | <seglistitem>
|
---|
| 295 | <seg>
|
---|
| 296 | mutter
|
---|
| 297 | </seg>
|
---|
| 298 | <seg>
|
---|
[7f30c72] | 299 | libmutter-15.so and libmutter-test-15.so (optional)
|
---|
[2e704d1b] | 300 | </seg>
|
---|
| 301 | <seg>
|
---|
[7f30c72] | 302 | /usr/{lib,include,libexec/installed-tests,share/{,installed-tests}}/mutter-15
|
---|
[2e704d1b] | 303 | </seg>
|
---|
| 304 | </seglistitem>
|
---|
| 305 | </segmentedlist>
|
---|
| 306 |
|
---|
| 307 | <variablelist>
|
---|
| 308 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 309 | <?dbfo list-presentation="list"?>
|
---|
| 310 | <?dbhtml list-presentation="table"?>
|
---|
| 311 |
|
---|
| 312 | <varlistentry id="mutter-prog">
|
---|
| 313 | <term><command>mutter</command></term>
|
---|
| 314 | <listitem>
|
---|
| 315 | <para>
|
---|
| 316 | is a <application>Clutter</application> based compositing
|
---|
[4c24eb0a] | 317 | <application>GTK+</application> Window Manager
|
---|
[2e704d1b] | 318 | </para>
|
---|
| 319 | <indexterm zone="mutter mutter-prog">
|
---|
| 320 | <primary sortas="b-mutter">mutter</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
| 325 | <varlistentry id="libmutter">
|
---|
[7f30c72] | 326 | <term><filename class="libraryfile">libmutter-15.so</filename></term>
|
---|
[2e704d1b] | 327 | <listitem>
|
---|
| 328 | <para>
|
---|
[4c24eb0a] | 329 | contains the <application>Mutter</application> API functions
|
---|
[2e704d1b] | 330 | </para>
|
---|
| 331 | <indexterm zone="mutter libmutter">
|
---|
[7f30c72] | 332 | <primary sortas="c-libmutter">libmutter-15.so</primary>
|
---|
[2e704d1b] | 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
[460609c] | 337 | <varlistentry id="libmutter-test">
|
---|
[7f30c72] | 338 | <term><filename class="libraryfile">libmutter-test-15.so</filename></term>
|
---|
[460609c] | 339 | <listitem>
|
---|
| 340 | <para>
|
---|
| 341 | contains the <application>Mutter</application> test suite API
|
---|
| 342 | functions; this library is only installed if the test suite of
|
---|
| 343 | this package is enabled and it is needed by
|
---|
| 344 | <application>gnome-shell</application> test suite
|
---|
| 345 | </para>
|
---|
| 346 | <indexterm zone="mutter libmutter-test">
|
---|
[7f30c72] | 347 | <primary sortas="c-libmutter-test">libmutter-test-15.so</primary>
|
---|
[460609c] | 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
[2e704d1b] | 352 | </variablelist>
|
---|
| 353 |
|
---|
| 354 | </sect2>
|
---|
| 355 |
|
---|
| 356 | </sect1>
|
---|