mutter/src
Jonas Ådahl 1818d21da5 Introduce virtual monitors
Virtual monitors are monitors that isn't backed by any monitor like
hardware. It would typically be backed by e.g. a remote desktop service,
or a network display.

It is currently only supported by the native backend, and whether the
X11 backend will ever see virtual monitors is an open question. This
rest of this commit message describes how it works under the native
backend.

Each virutal monitor consists of virtualized mode setting components:

 * A virtual CRTC mode (MetaCrtcModeVirtual)
 * A virtual CRTC (MetaCrtcVirtual)
 * A virtual connector (MetaOutputVirtual)

In difference to the corresponding mode setting objects that represents
KMS objects, the virtual ones isn't directly tied to a MetaGpu, other
than the CoglFramebuffer being part of the GPU context of the primary
GPU, which is the case for all monitors no matter what GPU they are
connected to. Part of the reason for this is that a MetaGpu in practice
represents a mode setting device, and its CRTCs and outputs, are all
backed by real mode setting objects, while a virtual monitor is only
backed by a framebuffer that is tied to the primary GPU. Maybe this will
be reevaluated in the future, but since a virtual monitor is not tied to
any GPU currently, so is the case for the virtual mode setting objects.

The native rendering backend, including the cursor renderer, is adapted
to handle the situation where a CRTC does not have a GPU associated with
it; this in practice means that it e.g. will not try to upload HW cursor
buffers when the cursor is only on a virtual monitor. The same applies
to the native renderer, which is made to avoid creating
MetaOnscreenNative for views that are backed by virtual CRTCs, as well
as to avoid trying to mode set on such views.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
2021-03-12 15:09:45 +00:00
..
backends Introduce virtual monitors 2021-03-12 15:09:45 +00:00
compositor plugins/default: Initialize background color in a predictable manner 2021-03-12 15:09:45 +00:00
core backend: Add 'prepare-shutdown' signal 2021-03-12 15:09:45 +00:00
meta background-content: Add support for rounded clipping when drawing 2021-02-18 20:26:42 +00:00
tests tests: Add headless native backend test 2021-03-12 15:09:45 +00:00
ui frame: Fix crash when clicking below titlebar with broken gtk themes 2021-03-08 21:16:09 +00:00
wayland wayland: Send presentation feedbacks to cursors 2021-03-08 09:48:12 +00:00
x11 x11-display: Use unsetenv if old value was NULL 2021-02-27 09:16:49 +00:00
libmutter.pc.in
meson.build Introduce virtual monitors 2021-03-12 15:09:45 +00:00
meta-private-enum-types.c.in
meta-private-enum-types.h.in
org.freedesktop.login1.xml
org.gnome.Mutter.DisplayConfig.xml x11: Support the CTM (color transform matrix) RandR property 2021-01-11 13:44:54 +00:00
org.gnome.Mutter.IdleMonitor.xml
org.gnome.Mutter.RemoteDesktop.xml remote-desktop/session: Add CapsLockState and NumLockState properties 2021-03-04 17:39:08 +00:00
org.gnome.Mutter.ScreenCast.xml