mutter/src/compositor
Marco Trevisan (Treviño) 7776941b89 window-actor: Set actor as compositor private in window before the surface
In MetaWindowActor creation we're setting the compositor private (i.e. the
window actor itself) of a window before creating the surface actor, and so
passing to the it a window without its compositor side set.

Since the surface actor might use the parent actor, set this before updating
the surface.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/660
2019-06-28 19:36:46 +02:00
..
plugins
clutter-utils.c
clutter-utils.h
cogl-utils.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
cogl-utils.h
compositor-private.h compositor: Use direct access to disconnect top window actor signal 2019-06-28 19:36:46 +02:00
compositor.c compositor: Use direct access to disconnect top window actor signal 2019-06-28 19:36:46 +02:00
meta-background-actor-private.h
meta-background-actor.c
meta-background-group.c meta: Make MetaBackgroundGroup derivable 2019-06-24 13:49:31 +00:00
meta-background-image.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
meta-background-private.h
meta-background.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
meta-cullable.c
meta-cullable.h
meta-dnd-actor-private.h
meta-dnd-actor.c
meta-dnd.c Fix XDND handling to work without GDK and MetaX11Display 2018-07-06 19:47:16 +02:00
meta-feedback-actor-private.h
meta-feedback-actor.c
meta-module.c
meta-module.h Changed obsolete FSF postal address into generic URL. 2014-01-13 11:35:47 -05:00
meta-plugin-manager.c compositor: Add "locate_pointer" vmethod 2019-06-05 09:34:39 +00:00
meta-plugin-manager.h compositor: Add "locate_pointer" vmethod 2019-06-05 09:34:39 +00:00
meta-plugin.c
meta-shadow-factory.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
meta-shaped-texture-private.h
meta-shaped-texture.c
meta-surface-actor-wayland.c
meta-surface-actor-wayland.h
meta-surface-actor-x11.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
meta-surface-actor-x11.h
meta-surface-actor.c
meta-surface-actor.h
meta-sync-ring.c
meta-sync-ring.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-texture-tower.c cogl: Remove CoglError wrapper 2019-06-20 18:25:04 +02:00
meta-texture-tower.h
meta-window-actor-private.h
meta-window-actor-wayland.c
meta-window-actor-wayland.h Add MetaWindowActorX11 and MetaWindowActorWayland 2019-01-04 09:32:51 -02:00
meta-window-actor-x11.c
meta-window-actor-x11.h
meta-window-actor.c window-actor: Set actor as compositor private in window before the surface 2019-06-28 19:36:46 +02:00
meta-window-group-private.h
meta-window-group.c
meta-window-shape.c
README
region-utils.c
region-utils.h

Intro
=====

In general, the compositor splits the window from the contents of
the window from the shape of the window. In other words, a window
has contents, and the contents of the window have a shape. This is
represented by the actor hierarchy:

 +--------------------------------------+
 | MetaWindowActor                      |
 | +----------------------------------+ |
 | | MetaSurfaceActor                 | |
 | | +------------------------------+ | |
 | | | MetaShapedTexture            | | |
 | | |                              | | |
 | | |                              | | |
 | | |                              | | |
 | | |                              | | |
 | | +------------------------------+ | |
 | +----------------------------------+ |
 +--------------------------------------+

Surfaces may also contain subsurfaces. The MetaWindowActor and
MetaSurfaceActor subclasses that will be created depend on the client
type, and the display server type.

## Subsurfaces

Additionally, there is also the case of subsurfaces: surfaces that
are child of other surfaces. That is also represented in the actor
hierarchy by having one or many MetaSurfaceActors (the subsurfaces)
added as children of a parent MetaSurfaceActor. There are no limits
to how many subsurfaces a surface may have. With subsurfaces, the
actor hierarchy looks like this:

 MetaWindowActor
  ↳ MetaSurfaceActor (surface)
     ↳ MetaShapedTexture
     ↳ MetaSurfaceActor (subsurface)
        ↳ MetaShapedTexture
        ↳ MetaSurfaceActor (sub-subsurface)
           ↳ MetaShapedTexture
     ↳ MetaSurfaceActor (subsurface)
        ↳ MetaShapedTexture

In this example, the main surface has 2 subsurfaces. One of these
subsurfaces contains a subsurface as well.

All MetaWindowActors contain at least one MetaSurfaceActor, and all
MetaSurfaceActors contain a MetaShapedTexture.

## Client and compositor

MetaWindowActor and its subclasses represent the client window's
type. A X11 client will have a MetaWindowActorX11 representing it,
and a Wayland client will have a MetaWindowActorWayland.

On the compositor side, the surface where the contents of the window
are drawn into are represented by MetaSurfaceActor subclasses. On a
Wayland session, windows are backed by a MetaSurfaceActorWayland
surface, whereas on X11 sessions, by MetaSurfaceActorX11.

XWayland windows are X11 client windows (MetaWindowActorX11) backed
by Wayland surfaces (MetaWindowActorWayland).


Env Vars
========

MUTTER_DISABLE_MIPMAPS - set to disable use of mipmaped windows.