[2e704d1b] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[185b3090] | 7 | <!ENTITY mutter-download-http "&gnome-download-http;/mutter/&gnome-42;/mutter-&mutter-version;.tar.xz">
|
---|
| 8 | <!ENTITY mutter-download-ftp "&gnome-download-ftp;/mutter/&gnome-42;/mutter-&mutter-version;.tar.xz">
|
---|
[6729290] | 9 | <!ENTITY mutter-md5sum "18b6f716ba0f6b899ed2edb08ab4ca68">
|
---|
[1a8fb18] | 10 | <!ENTITY mutter-size "2.6 MB">
|
---|
[6729290] | 11 | <!ENTITY mutter-buildsize "130 MB (without tests)">
|
---|
[8b152256] | 12 | <!ENTITY mutter-time "0.5 SBU (Using parallelism=4)">
|
---|
| 13 | <!ENTITY mutter-time-systemd "0.5 SBU (Using parallelism=4, add 1.0 SBU for tests)">
|
---|
[2e704d1b] | 14 | ]>
|
---|
| 15 |
|
---|
[51dfb3e] | 16 | <sect1 id="mutter" xreflabel="Mutter-&mutter-version;">
|
---|
[2e704d1b] | 17 | <?dbhtml filename="mutter.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Mutter-&mutter-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="mutter">
|
---|
| 26 | <primary sortas="a-Mutter">Mutter</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Mutter</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>Mutter</application> is the window manager for
|
---|
| 34 | <application>GNOME</application>. It is not invoked directly,
|
---|
| 35 | but from <application>GNOME Session</application> (on a
|
---|
| 36 | machine with a hardware accelerated video driver).
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[19f84a6] | 39 | &lfs112_checked;
|
---|
[2e704d1b] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&mutter-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&mutter-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &mutter-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &mutter-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &mutter-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
[8b152256] | 68 | <listitem revision='sysv'>
|
---|
[2e704d1b] | 69 | <para>
|
---|
| 70 | Estimated build time: &mutter-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
[8b152256] | 73 | <listitem revision='systemd'>
|
---|
| 74 | <para>
|
---|
| 75 | Estimated build time: &mutter-time-systemd;
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
[2e704d1b] | 78 | </itemizedlist>
|
---|
[a0ed916] | 79 | <!--
|
---|
[aa17ca8] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>
|
---|
[185b3090] | 84 | Recommended patch:
|
---|
| 85 | <ulink url="&patch-root;/mutter-&mutter-version;-consolidated_fixes-1.patch"/>
|
---|
[aa17ca8] | 86 | </para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
[a0ed916] | 89 | -->
|
---|
[2e704d1b] | 90 | <bridgehead renderas="sect3">Mutter Dependencies</bridgehead>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 93 | <para role="required">
|
---|
[53134b6f] | 94 | <!-- now using internal shipped clutter and cogl copies -->
|
---|
| 95 | <!-- <xref linkend="clutter"/>, -->
|
---|
[5d1a066] | 96 | <xref linkend="gnome-settings-daemon"/>,
|
---|
[2c80efe] | 97 | <xref linkend="graphene"/>,
|
---|
[88e7954] | 98 | <xref linkend="libxcvt"/>,
|
---|
[2e704d1b] | 99 | <xref linkend="libxkbcommon"/>,
|
---|
[4cf64fb] | 100 | <xref linkend="pipewire"/>, and
|
---|
[2e704d1b] | 101 | <xref linkend="zenity"/>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 105 | <para role="recommended">
|
---|
[078db5b6] | 106 | <xref linkend="desktop-file-utils"/>,
|
---|
[3d3560c5] | 107 | <xref linkend="gobject-introspection"/>,
|
---|
| 108 | <xref linkend="startup-notification"/>, and
|
---|
| 109 | <xref linkend="sysprof"/>
|
---|
[2e704d1b] | 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <bridgehead renderas="sect4">Recommended (Required to
|
---|
| 113 | build the Wayland compositor)</bridgehead>
|
---|
| 114 | <para role="recommended">
|
---|
| 115 | <xref linkend="libinput"/>,
|
---|
[8558044] | 116 | <xref linkend="wayland"/>,
|
---|
[2e704d1b] | 117 | <xref linkend="wayland-protocols"/>, and
|
---|
[88e7954] | 118 | <xref linkend="xwayland"/>.
|
---|
[4f5369a] | 119 | Additionally, <xref linkend="gtk3"/> needs to be built with
|
---|
[2e704d1b] | 120 | <application>Wayland</application> support.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
[2126b9e] | 123 | <bridgehead renderas="sect4"
|
---|
| 124 | revision="sysv">Recommended (Runtime)</bridgehead>
|
---|
| 125 | <para role="recommended" revision="sysv">
|
---|
| 126 | <xref linkend="blocaled" role="runtime"/>
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[88e7954] | 129 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 130 | <para role="optional">
|
---|
[ac60f17f] | 131 | <xref linkend="python-dbusmock"/> (required for tests) and
|
---|
[88e7954] | 132 | <xref linkend="xorg-server"/> (for X11 sessions)
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
[dcea4e3] | 135 | <!-- NOTE: Mutter compiles git versions of COGL and Clutter for it's own
|
---|
| 136 | internal use. This is because the wayland support upstream isn't advanced
|
---|
| 137 | enough for the graphics stack used in Mutter. -->
|
---|
[0129a2f5] | 138 |
|
---|
[2e704d1b] | 139 | <para condition="html" role="usernotes">User Notes:
|
---|
| 140 | <ulink url="&blfs-wiki;/mutter"/>
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="installation">
|
---|
| 146 | <title>Installation of Mutter</title>
|
---|
[a0ed916] | 147 | <!--
|
---|
[1a8fb18] | 148 | <para>
|
---|
[185b3090] | 149 | First, apply a patch that fixes annoying bugs found after GNOME 42
|
---|
| 150 | release:
|
---|
[1a8fb18] | 151 | </para>
|
---|
| 152 |
|
---|
[185b3090] | 153 | <screen><userinput>patch -Np1 -i ../mutter-&mutter-version;-consolidated_fixes-1.patch</userinput></screen>
|
---|
[a0ed916] | 154 | -->
|
---|
[2e704d1b] | 155 | <para>
|
---|
| 156 | Install <application>Mutter</application> by running the following
|
---|
| 157 | commands:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[dcea4e3] | 160 | <screen><userinput>mkdir build &&
|
---|
[77fb6ffc] | 161 | cd build &&
|
---|
[dcea4e3] | 162 |
|
---|
[69f58f5e] | 163 | meson --prefix=/usr --buildtype=release -Dtests=false .. &&
|
---|
[dcea4e3] | 164 | ninja</userinput></screen>
|
---|
[2e704d1b] | 165 |
|
---|
[477bc4a] | 166 | <!--
|
---|
[2e704d1b] | 167 | <para>
|
---|
[74db4f4] | 168 | To test the results, issue:
|
---|
| 169 | <command>dbus-run-session ninja test</command>. The tests
|
---|
| 170 | require an active X session to run correctly. It is not necessary to
|
---|
| 171 | run a separate D-bus session if not in a GNOME session, but it
|
---|
[1a8fb18] | 172 | provides a clean environment in any case. One test,
|
---|
| 173 | <filename>native-headless</filename>, is known to fail.
|
---|
[2e704d1b] | 174 | </para>
|
---|
[477bc4a] | 175 | -->
|
---|
[ac60f17f] | 176 | <!-- there are no added problems in sysv, AFAICT. Running the tests is
|
---|
| 177 | not easy whatever the init system. But using the instructions below in
|
---|
| 178 | a gnome session on sysv works (no test failure)...
|
---|
[8b152256] | 179 | <para revision='sysv'>
|
---|
[15d6673a] | 180 | This package does not come with a test suite that runs properly in the
|
---|
[8b152256] | 181 | SystemV environment.
|
---|
[477bc4a] | 182 | </para>
|
---|
[ac60f17f] | 183 | -->
|
---|
[afea77c] | 184 |
|
---|
[ac60f17f] | 185 | <para>
|
---|
[8b152256] | 186 | The test suite requires debug functions to be enabled in the build, and an
|
---|
| 187 | external program called <command>xvfb-run</command>. If you wish to run
|
---|
| 188 | the tests, you should download and install it before running
|
---|
| 189 | <command>meson</command>.
|
---|
[1fe05eb] | 190 |
|
---|
[8b152256] | 191 | You can obtain it from <ulink
|
---|
| 192 | url="&sources-anduin-http;/mutter/xvfb-run">xvfb-run</ulink>, and install
|
---|
| 193 | it with executable permissions in <filename
|
---|
| 194 | class="directory">/usr/bin</filename>. <command>xvfb-run</command> needs
|
---|
| 195 | <command>Xvfb</command> at runtime, and <command>Xvfb</command> can be
|
---|
| 196 | installed from either <xref linkend='xorg-server'/> or <xref
|
---|
| 197 | linkend='xwayland'/>.
|
---|
[1fe05eb] | 198 |
|
---|
[ac60f17f] | 199 | You should also replace <parameter>--buildtype=release
|
---|
[8b152256] | 200 | -Dtests=false</parameter> in the <command>meson</command> command, with
|
---|
| 201 | <parameter>--buildtype=debugoptimized -Dtests=true</parameter>. The test
|
---|
| 202 | suite requires the mutter schema to be installed on the system, so it is
|
---|
[ac60f17f] | 203 | better to run the tests after installing the package.
|
---|
| 204 | </para>
|
---|
[8b152256] | 205 |
|
---|
[afea77c] | 206 | <para>
|
---|
| 207 | You can also test basic functions of <application>Mutter</application>
|
---|
| 208 | following <xref linkend='mutter-starting'/>, after installing it.
|
---|
| 209 | </para>
|
---|
| 210 |
|
---|
[2e704d1b] | 211 | <para>
|
---|
| 212 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 213 | </para>
|
---|
| 214 |
|
---|
[dcea4e3] | 215 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[2e704d1b] | 216 |
|
---|
[ac60f17f] | 217 | <para>
|
---|
[185b3090] | 218 | The tests can now be run: issue
|
---|
[ac60f17f] | 219 | <command>ninja test</command>. The tests
|
---|
| 220 | require an active X or wayland session.
|
---|
[8b152256] | 221 | The <filename>native-unit</filename> is known to fail.
|
---|
[ac60f17f] | 222 | A lot of tests will fail if the opengl rendering is not done in hardware.
|
---|
[34726a0] | 223 | </para>
|
---|
[2e704d1b] | 224 | </sect2>
|
---|
| 225 |
|
---|
[adf17153] | 226 | <sect2 role="commands">
|
---|
| 227 | <title>Command Explanations</title>
|
---|
| 228 |
|
---|
[69f58f5e] | 229 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 230 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[1ff2d21] | 231 |
|
---|
[3592a6e] | 232 | <para>
|
---|
| 233 | <parameter>-Dtests=false</parameter>: Prevents building the tests,
|
---|
[185b3090] | 234 | and removes a hard requirement on <command>xvfb-run</command>.
|
---|
[3592a6e] | 235 | </para>
|
---|
| 236 |
|
---|
[1ff2d21] | 237 | <para>
|
---|
| 238 | <option>-Dprofiler=false</option>: Use this option if
|
---|
| 239 | <application>Sysprof</application> is not installed, and you don't
|
---|
| 240 | want meson to download <application>Sysprof</application> source
|
---|
| 241 | code.
|
---|
| 242 | </para>
|
---|
[477bc4a] | 243 |
|
---|
[adf17153] | 244 | </sect2>
|
---|
| 245 |
|
---|
[afea77c] | 246 | <sect2 role="starting" id="mutter-starting">
|
---|
| 247 | <title>Starting Mutter</title>
|
---|
| 248 |
|
---|
| 249 | <!-- Mutter as a Wayland compositor Works with mutter-42.4 and 43.0.
|
---|
| 250 | IIRC mutter can also be used as a X window manager: just replace
|
---|
| 251 | "twm" with "mutter ‐‐x11" in xinitrc. But I've not tested
|
---|
| 252 | such a configuration recently (I don't build Xorg Server or xinit
|
---|
| 253 | these days. -->
|
---|
| 254 |
|
---|
| 255 | <para>
|
---|
| 256 | <application>Mutter</application> is normally used as a component of
|
---|
| 257 | <application>gnome-shell</application>, but it can be used as a
|
---|
| 258 | standalone Wayland compositor too. To run
|
---|
| 259 | <application>Mutter</application> as a Wayland compositor, in a
|
---|
| 260 | virtual console, issue:
|
---|
| 261 | </para>
|
---|
| 262 |
|
---|
| 263 | <screen role='nodump'><userinput>mutter --wayland -- vte-2.91</userinput></screen>
|
---|
| 264 |
|
---|
| 265 | <para>
|
---|
| 266 | Replace <command>vte-2.91</command> with the command line for the
|
---|
| 267 | first application you want in the Wayland session. Note that once this
|
---|
| 268 | application exits, the Wayland session will be terminated.
|
---|
| 269 | </para>
|
---|
| 270 |
|
---|
| 271 | <para>
|
---|
| 272 | <application>Mutter</application> can also function as a nested
|
---|
| 273 | compositor in another Wayland session. In a terminal emulator, issue:
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
| 276 | <screen role='nodump'><userinput>MUTTER_DEBUG_DUMMY_MODE_SPECS=1920x1080 mutter --wayland --nested -- vte-2.91</userinput></screen>
|
---|
| 277 |
|
---|
| 278 | <para>
|
---|
| 279 | Replace <replaceable>1920x1080</replaceable> with the size you want
|
---|
| 280 | for the nested Wayland session.
|
---|
| 281 | </para>
|
---|
| 282 | </sect2>
|
---|
| 283 |
|
---|
[2e704d1b] | 284 | <sect2 role="content">
|
---|
| 285 | <title>Contents</title>
|
---|
| 286 |
|
---|
| 287 | <segmentedlist>
|
---|
| 288 | <segtitle>Installed Programs</segtitle>
|
---|
| 289 | <segtitle>Installed Libraries</segtitle>
|
---|
| 290 | <segtitle>Installed Directories</segtitle>
|
---|
| 291 |
|
---|
| 292 | <seglistitem>
|
---|
| 293 | <seg>
|
---|
| 294 | mutter
|
---|
| 295 | </seg>
|
---|
| 296 | <seg>
|
---|
[185b3090] | 297 | libmutter-10.so
|
---|
[2e704d1b] | 298 | </seg>
|
---|
| 299 | <seg>
|
---|
[185b3090] | 300 | /usr/{lib,include,libexec/installed-tests,share/{,installed-tests}}/mutter-10
|
---|
[2e704d1b] | 301 | </seg>
|
---|
| 302 | </seglistitem>
|
---|
| 303 | </segmentedlist>
|
---|
| 304 |
|
---|
| 305 | <variablelist>
|
---|
| 306 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 307 | <?dbfo list-presentation="list"?>
|
---|
| 308 | <?dbhtml list-presentation="table"?>
|
---|
| 309 |
|
---|
| 310 | <varlistentry id="mutter-prog">
|
---|
| 311 | <term><command>mutter</command></term>
|
---|
| 312 | <listitem>
|
---|
| 313 | <para>
|
---|
| 314 | is a <application>Clutter</application> based compositing
|
---|
[4c24eb0a] | 315 | <application>GTK+</application> Window Manager
|
---|
[2e704d1b] | 316 | </para>
|
---|
| 317 | <indexterm zone="mutter mutter-prog">
|
---|
| 318 | <primary sortas="b-mutter">mutter</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <varlistentry id="libmutter">
|
---|
[f1cb793] | 324 | <term><filename class="libraryfile">libmutter-9.so</filename></term>
|
---|
[2e704d1b] | 325 | <listitem>
|
---|
| 326 | <para>
|
---|
[4c24eb0a] | 327 | contains the <application>Mutter</application> API functions
|
---|
[2e704d1b] | 328 | </para>
|
---|
| 329 | <indexterm zone="mutter libmutter">
|
---|
[f1cb793] | 330 | <primary sortas="c-libmutter">libmutter-9.so</primary>
|
---|
[2e704d1b] | 331 | </indexterm>
|
---|
| 332 | </listitem>
|
---|
| 333 | </varlistentry>
|
---|
| 334 |
|
---|
| 335 | </variablelist>
|
---|
| 336 |
|
---|
| 337 | </sect2>
|
---|
| 338 |
|
---|
| 339 | </sect1>
|
---|